From the issues that you have quoted its obvious that computer is running in a low configuration.Some Softwares require minimum configuration to execute.The system may be lacking basic requirements and eventually it crashes.
At the same time you could delay the restarts by :
"Start" -> "Computer" --> right click on "Properties", and then tap "Advanced system settings".
In the advanced options of the system context menu, click on "Settings" for Startup and Recovery.
In Startup and Recovery, uncheck the "Automatically restart" for system failure. Click "OK" after unchecking the checkbox.