Hello everyone, I have a problem with the game (or my PC still do not know) first I'm sorry for my English, I hope understand me.

I bought a PC recently with these features:
-Nox Urano VX 750W 80+ Bronze 140MM PWM
-G.Skill FlareX DDR4 2400 PC4-19200 32GB 2x16GB CL15
-Gigabyte B450 Aorus Elite
-Procesador AMD Ryzen 7 2700 4.1 Ghz
-Gigabyte GeForce GTX 1050Ti OC 4GB GDDR5

Playing and doing whatever, the screen turns black and the PC tries to shut down (I have a program so that it does not "DontSleep") but I lose seconds since I see the screen to turn off or close.
All the drivers are up to date and I don't know what it could be, does it lack power or is it a game problem?
Thank you.