Question Screen randomly goes black and PC restarts ?

Jun 7, 2023
1
0
10
PC Specs:
Ryzen 7 5800x
16gb DDR4 3600mhz RAM
ASUS 3060TI
idk some <bad language removed> 750w psu
seagate 2tb hdd
2 250gb ssd

I've had a prebuilt for around 6-7 years, but I've been replacing the parts slowly as I want to upgrade. Everything's been working fine until about a month or two ago. Randomly while I'm using it, my screen goes black but the pc is still powered on and then reboots. All temps are normal, I've run checks on the drives and they're perfectly normal, but possibly could still be the issue. I've had the power supply since I first bought this computer so it's pretty old and that's what I'm leaning toward as the issue but I'm not totally sure. I've also made sure my power supply cables are plugged in properly. I'm not sure what the issue is but if anyone knows please help! Thanks.