Depending on what these scripts are doing, a great deal of system resources are used by the process that is crashing. Since the script engine process is crashing, then the most likely cause is insufficient resources.

Since this computer is running the minimum recommended requirements for a Database Server only at 4 GB of RAM, if the server is doing any web publishing at all, then the machine is running below specifications. The very first suggestion would be to increase the total to 8 GB and see if the issue persists.