Ubuntu won't boot properly after installing nvidia driver

I installed nvidia-driver-440 on ubuntu and after rebooting my system the display is in low resulation and there’s no option to change it. I also can not connect to internet and my second display is not recognized either.

I wonder how I can fix it. I don’t wanted go through installing ubuntu again.