Amdgpu driver crash

Do you have another device that can connect to the system with a terminal when the display fails? If the kernel isn’t affected you should be able to do a proper shutdown or reboot. You can do this using cockpit with a web browser, even on a tablet or smartphone. The free version of the termius ssh client runs on iOS, ipadOS, and android.

I will try that, but as I said earlier, this happens on KDE as well, so It doesn’t seem to be a gnome issue

KDE also supports triple buffering, it is an Nvidia “feature”.