Don't OC to CPU. If you did, clean-reinstall your system. If the problem persists, go to the BIOS and manually adjust the CPU speeds. You can probably fix the problem.
As mentioned everything is stock, i have not OC CPU or GPU. It isnt a CPU problem its a driver issue with the GPU as my Nvidia card works flawlessly.
The program you use has different loads on the processor for nVidia and AMD graphics cards. The error message you get is most likely sourced from the processor. Go to the BIOS and disable turbo boost for CPU and try again. If there is a problem, there may be a problem with the GPU as you type.
Do you have 4 sticks of Ram installed? I remember having this issue when OCing my RAM to 3200MHz on my Ryzen 7 1700 + Asus X470 Strix. I was stress testing in P95, Large FFTs to stress memory controller and it would do the mouse stutter and CPU utilization would never reach 100% and it would eventually BSOD or just freeze up my PC after like 10 minutes.
I solved it by increasing my SOC Load Line Calibration to max (Level 5) so that there wouldn't be a voltage drop when the SOC is underload. This solved my stability problems there.