i have the same issues but happens very rarely, and i know what the issue is its the power supply
which is what im replacing at the end of the month with something from seasonic
this only started happening to me 5 months after making a new build with ryzen but using the same power supply i bought back in 2013