As a workaround I did the following:
sudo systemctl disable nvidia-persistenced.service
sudo apt remove nvidia-prime
sudo nano /etc/gdm3/custom.conf and uncomment #WaylandEnable=false
As a workaround I did the following:
sudo systemctl disable nvidia- persistenced. service
sudo apt remove nvidia-prime
sudo nano /etc/gdm3/ custom. conf false
and uncomment #WaylandEnable=