To summarize, the kernel I use does not detect the nvidia graphics, this has happened to me in openSUSE or Pop!_os, but they have not given me a solution, so that's it, thanks!
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running, this is the error that appears after updating the kernel