Unresponsive Ubuntu install

I have a Ubuntu 18.04 installation that sometimes becomes completely unresponsive have to hit the reset button. Usually when idle or under load. I check all the /var/log files and nothing looks out of place. I suspect NVIDIA drivers. Amd ryzen 7 1800x CPU. Help