NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I used ubuntu 22.04 and installed the latest drivers as well but could not solve this error yet