Question why does my brand new pc shut off after i start a game

Jan 4, 2020
4
0
10
my specs are
amd ryzen 3600
msi mpg x570 gaming edge wifi atx am4 motherboard
corsair dominator platinum rgb 32 gb
sandisk ultra 3d 1 tb 2.5 solid state drive
msi radeon rx 5700 xt 8 gb mech oc video card
case master cooler master masterbox pro 5 gbs atx mid tower
corsair cxm 750 w 80+ bronze certified semi-modular power atx power suppply

works fine for other tasks but every time i launch a game it powers off and restarts the pc after a minute or 2 wondering what the issue is when i ran a game with msi afterburner all the temps seemed fine also the rgb lights on my fans arnt working but i could live without those this is my first pc build and im not entirely sure why the computer keeps shutting off also updated all my drivers to the mostr recently updated ones any help would be appreciated
 
Jan 4, 2020
4
0
10
it has a grey label and the only power managment setting i could find were in the cpu overclocking settings and i tried to see if it worked with those off but still does the same thing thanks for trying to help though
 
Jan 4, 2020
4
0
10
went into my system event log and this is the error im getting if providing this helps

License Activation (slui.exe) failed with the following error code:
hr=0x803F7001
Command-line arguments:
RuleId=31e71c49-8da7-4a2f-ad92-45d98a1c79ba;Action=AutoActivate;AppId=55c92734-d682-4d71-983e-d6ec3f16059f;SkuId=2b1f36bb-c1cd-4306-bf5c-a0367c2d97d8;NotificationInterval=1440;Trigger=NetworkAvailable