KWIN_DRM_NO_DIRECT_SCANOUT=1 into /etc/environment and then reboot. There is a small hit to performance (I haven't noticed any hit, but KDE says there is), but the issue is now completely gone. I don't have to use gamescope and I can turn the steam overlay back on too