apt policy nvidia-settings
This will list the versions available in the repositories you have added. Look for the version in the ubuntu.com archive.
sudo apt install nvidia-settings=VERSION_FROM_UBUNTU
Where VERSION_FROM_UBUNTU is the version number from the Ubuntu archive you saw from policy.
You will probably want to apt-mark hold nvidia-settings after this so it doesn’t upgrade to the Nvidia repository version again.