Unable to change screen resolution after trying to overclock nvidia graphics 1050ti

I was was trying to overclock my nvidia graphics card 1050ti but I was unable to. After restarting my pc my screen resolution is all messed up, all the icons and cursor are really big and i am unable to change the nouveau driver to nvidia driver. Image

I am also unable to change resolution of the screen through settings

-Ubuntu 18.04

-Nvidia 1050ti

-Amd ryzen 1600