I pulled up your system specs here...
I am sorry to have to tell you this, but you can't game with this notebook, your SPECS are far too low. Not only do you only have 4GB of RAM, but you only have Intel HD graphics, you have no discreet GPU.
This is the reason why your system is restarting. The games are trying to engage 3D acceleration from a GPU that is not capable of it. I have a old dual core notebook that also had Intel HD graphics just as you do, and it also can't game, I've tried, and it failed me for the last time.
So, if you want to game, I'm sorry, but your going to have to buy a new computer. Make sure you choose a machine that has at least a bare minimum of a Core I5 6-core CPU, 16GB of DDR4 RAM, and at least a Nvidia GTX1060, RTX 2060 or better recommended.