Computer randomly shutting off while in a game

Zachreezy

Commendable
Jan 10, 2017
1
0
1,510
My Computer keeps shutting off recently.

Whenever I start to play my games my computer will shut off in the middle of a game and it's super annoying. I dusted out all the fans in my PC. Before I was getting a blue screen that said the automatic repair failed. So I went in and re-installed windows 8.1 to solve that issue, but there might be another issue that's still causing my custom built computer to shut off during my games.

Here are my specs:
1 x ASUS M5A97 R2.0 AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.0 ATX AMD Motherboard with UEFI BIOS
1 x SAPPHIRE Radeon R7 260X DirectX 11.2 100366-2L 2GB 128-Bit GDDR5 PCI Express 3.0 CrossFireX Support Video Card
1 x CORSAIR CX-M series CX500M 500W 80 PLUS BRONZE Active PFC ATX12V & EPS12V Modular Power Supply
1 x AMD FX-6300 Vishera 6-Core 3.5 GHz (4.1 GHz Turbo) Socket AM3+ 95W FD6300WMHKBOX Desktop Processor
1 x G.SKILL Ripjaws X Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model ...
1 x WD Blue 1TB Desktop Hard Disk Drive - 7200 RPM SATA 6Gb/s 64MB Cache 3.5 Inch - WD10EZEX
1 x ASUS DRW-24B1ST/BLK/B/AS Black SATA 24X DVD Burner - Bulk - OEM

Any help would be greatly appreciated! :/