Dell XPS 13 7390 with flickering screen

I got an XPS 13 as a work laptop and immediately installed arch on it. It worked really fine, but sometimes some pixel rows showed windows that are behind the current ones or the whole screen got a red tone. This happened only on the built in screen. External monitors worked completely fine.

In the end, deactivating panel self refresh fixed this behavior.

I just disabled it in the kernel options:

i915.enable_psr=0