Monitor flashing happening only in Linux

At seemingly random times, my main monitor will start flashing rapidly. At first I thought (and maybe still do) it was a hardware issue, but the weird thing is that it’s happening only on my EndeavourOS installation. I also have a Windows partition, and when it starts happening I quickly reboot into Windows, the issue is gone. I boot back into Endeavour and it’s back.

I still can’t 100% exclude the possibility of faulty hardware (monitor or GPU), but it’s worth a shot trying to troubleshoot it from the software side, given I can’t reproduce this issue on Windows.

I don’t know what else to post apart from xrandr, if more are needed please ask!

The issue is on DP-2

Screen 0: minimum 8 x 8, current 4480 x 1440, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00 + 144.00*  119.88    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1440x576      50.00  
   1440x480      59.94  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.94 + 164.83*  120.00  
   3840x2160     59.94    29.97  
   1920x1080    164.89   119.88   100.00    60.00    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x720     119.88   100.00    59.94    50.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94  
DP-3 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)

Maybe try connecting the DP to another port?