Screens randomly turning on/off on GNOME 43 Wayland

When I’m using the latest NVIDIA drivers with GNOME 43 Wayland on Fedora (previously also on GNOME 42), after a while my screens are turning on and off frequently either when moving the mouse or changing desktops. Did anyone else have this issue? There are no errors in dmesg or journalctl.

I’m on dual FHD screens with NVIDIA 960 GTX

I had this issue on Fedora 37, only on second monitor and on fullscreen while using chrome and some other apps. It turned out their custom windows were an issue. I solved it by turning on system window for those apps.

I solved it too by buying an Radeon card. Since then all my issues have gone away.