I have to reboot my system so that the error goes away. Even these commands don’t work:
sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm

So is there a way to get rid of this error without always rebooting it?