Computer Randomly Turns Off

jevoid

Prominent
Jan 13, 2018
2
0
510
i have had my computer for 2 years without any serious problems but recently my computer will randomly turn off for no apparent reason, I originally thought it was my psu but I replaced that and it still turns off I also ran memtest86 and it didn't detect any errors I also don't think it would be my gpu but I'm not shutting out that idea.
I have found that my computer is more likely to turn off while having discord or a game running.
Does anyone have an answer to this or a way of testing my cpu/motherboard/gpu/hard drive
Specs:
Radeon r9 380
Amd fx-6300
2x4gb corsair vengeance ram
Evga supernova 550 g3 psu
64 bit Windows 10
I'm not sure the brand of the motherboard