I had fixed this but i dont remember how.
Few people said that due to overheating its sleeping.
Im sure there was a 100% working fix for it because before clean installing my windows i had fixed this
Try using AIDA 64 to determine hardware status like thermals while gaming.
CoreTemp-Dump.txt (45.3 KB)
CoreTemp-Dump11.txt (46.7 KB)
Finally Found its solution ;) keeping these 2 settings and still if it powers off , making the resolution to 1280*720 would solve it 99.99%
The same thing happened with me for rainbow six siege , keeping the resolution 1280x720 , that made my computer sleep even after applying the above settings
I found it was due to more fps , i limited my fps by turning on vsync in ingame settings;)
So that is also one of the solution for few games.
Great now ill mark this as solved