if your updates included a new kernel try installing the kernel headers for the new kernel.
then if it’s still not working reinstall the nvidia driver.
i used to daily drive debian with proprietary nvidia drivers and it would break with every kernel upgrade
from memory, so almost certainly incorrect, the fix was simply something like
sudo apt install linux-headers-`uname -r` && sudo reboot
Lead of a small team of scripters here. The “Why. Not What” is defo a good way of encouraging cleaner code.
Had to request changes recently on a PR like this, big function with comments telling me what it was doing. When they resubmitted for review they had broken it down into smaller functions with good variable/function naming. following what was going on was much easier