After upgrading my PC to Ubuntu 20.04 24.04 (was 18.04), I've never been able to have reliable NVidia proprietary drivers. Google shows this as a common problem.
The built-in generic nouveau video drivers work fine. I need the CUDA drivers to use the GPU for my Team Helix activity.
My PC always crashes, meaning a blank screen at the X-Windows login prompt. I've tried several NVidia driver versions, they all have the same result.
I'd like to mention that Linux has a nice feature that you can't do in MS Windows. If you are crashed at the X-Windows login prompt, you can easily switch to a command line prompt and recover.
"CTRL + Shft + F1" will get you to a terminal, a.k.a. runlevel 3. A backgrounder: Run Levels in Linux
Once I dropped into a terminal, I wiped NVidia off the face of the planet and reinstalled the generic nouveau drivers.
As root:
# apt-get remove --purge nvidia*
# apt install xserver-xorg-video-nouveau
# apt autoremove
# reboot
Once again, life is good.