I have Ubuntu 19.04 installed on my PC. During installation I ticked the option where there is suggested to install drivers for hardware. After installation, everything booted fine, but after another restart, my computer started freezing on terminal messages like
“[OK] Stopping NVIDIA Persistence Daemon...”
How to Fix this?

-AMD Ryzen 5 2600
-Gigabyte NVIDIA GTX 1050