Best to use Ubuntu’s nVidia drivers. They are the same as nVidia’s but made to work with Ubuntu. If you installed the .run version from nVidia, you may have to reinstall with every kernel update where Ubuntu’s version does that automatically.
You also have to purge any previous nVidia drivers before installing a new one. You get conflicts and then more issues. If you have the .run installer, use its procedure to remove it.
If you manually installed a nVidia driver, but now recommended is different you need to purge all nVidia & then install the suggested/recommended driver.