Question Pc keeps shutting down randomly

Virago02

Commendable
Sep 27, 2019
11
0
1,510
It all started when we had a power outage a while ago. My pc was on while it happened. I thought nothing of it because I still could put my pc on and play games but I realised shortly after that after a while my pc shuts down randomly.

My temperatures is fine and I say it shuts down randomly because while playing games, watching movies or just my pc idling it still shuts down. The time that is takes is random too. Sometimes once a day and sometimes even 3 times.

I don't have any old parts to swap and my external harddrive went dead after the power outage.

Help would be appreciated
 

Virago02

Commendable
Sep 27, 2019
11
0
1,510
Psu: Corsair VS550
CPU: Intel Pentium G4560
Motherboard: Gigabyte Z170-Gaming K3
GPU: Gigabyte GTX 1050ti

It is a complete shutdown. Pc screen goes of just like it would if I pressed shut down manually. After the shutdown the pc turns on automatically