My Computer Keeps Crashing

I've been running into this issue every once in a while over the past two years ago where at seemingly random intervals my computer will freeze then black-screen and then starts the start-up process like I just turned it on. It doesn't seem to be correlated with CPU/GPU usage/temps, I thought maybe RAM usage but that seems unlikely too.

It fortunately hasn't been such a nuisance where I felt the need to do something about it immediately but some times I go for months with no problems and other times it once to multiple times a day, so I think I finally need to do something.

I want to say that it started with when I replaced my 1050 with a 2060 and so I'm thinking that it might be that I need to replace the PSU. I can only assume that the pre-built PSU that came with it is only so good and might not support big replacements or upgrades.

Appreciate any help!

Specs:
AMD Ryzen 5 1600
RTX 2060
16GB RAM
CYBERPOWERPC 600 Watt 80+ PSU
MSI X470 GAMING PLUS AM4 ATX