bro my pc ato shut down while playing Games why this happening

my pc configer is given below-

 

 

processor - amd 8320e

 

mobo is - MSI 970 gaming

 

Gpu - GTX - 1070 amp Zotac

 

Ram - 8gb 1600 bus

 

Storage -  512 gb ssd = 1tb HDD