Setting refresh rate to 4K 144Hz causes lines to appear (NVIDIA GPU)

Setting the resolution in the system settings for my TV (a Samsung QN92C) to 4K 144Hz causes lines to appear on top (see screenshot). The rest of the image also only updates every few seconds or so. 4K 120Hz works fine. I’m using a 3080 with the NVIDIA drivers, on Fedora 40 KDE (Wayland). On Windows, it works just fine. Is there any way to fix this?