Background of the issue: https://wildfiregames.com/forum/topic/84218-sudden-drop-in-fps-after-4096px-width-of-the-window/
Very high setting on large screens like 5120x1440 calculated shadow map size 32768. That was 16x more than high setting, 32x more than medium setting and 64x more than low setting.
After this change shadow map sizes using very high setting by resolution will be following:
1920x1080 - 4096
2560x1440 - 4096
3840x1440 - 4096
5120x1440 - 8192
3840x2160 - 4096
7680x4320 - 8192