Screen is saying Displayport no signal even though its connected and worked

To clarify a bit
I bought a screen about a month ago its running good
but if I launch ftb (modded minecraft)
or south park its flickers goes black and normal again for about 2 seconds and end up in windowed mode instead of fullscreen (I think)
Normally this wouldnt be a Issue but sometimes it stays black and says that there is no Displayport connected.

also xrandr --auto “fixes” it
but only temporarily

It sounds like the applications you’re running are trying to set a display resolution not supported by the display and/or cable.

I also thought about that
It also happened when I turned the Hz down to 144 from 280 in the settings (plasma)