Question Pc makes sounds & restarts or sometimes Black screen shows up after the sound.

Dec 3, 2019
1
0
10
I recently built my new pc and while playing DMC 5 & assassin's Creed unity it suddenly starts Making noises then restarts itself and for the last 2 days my PC faces this problem even quicker than before. But everything runs perfectly when I'm using an emulator. Anyone know how to fix this or what's causing this?

Specs:
AMD ryzen 5 3600
Msi b450m mortar Max
Thermaltake Toughram RGB 8gb 3200mhz
Sapphire Rx 580 4gb nitro+
Thermaltake versa j22 rgb case
Thermaltake BX1 550w rgb 80+ bronze psu
Windows 10 pro
Radeon adrenaline 19.9.2 driver