Please check if this helps:
Check whether
sudo cat /sys/module/nvidia_drm/parameters/modeset
Returns ‘Y’, if so, run
run
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*
to find a file containing
options nvidia-drm modeset=1
and change 1 to 0
then run
sudo update-initramfs -u
and reboot.
sudo cat /sys/module/nvidia_drm/parameters/modeset
should return ‘N’ if done right.
Furthermore, you should monitor gpu temperatures and correctly set up nvidia-persistenced in order to prevent running into the error state.