Frequent Crashes in RMMV

Okay, so, I've had RPG Maker MV for about 5 Months now, and up until today everything has been working fine. Then, all of a sudden, I get a random popup saying: "RPG Maker MV has stopped responding" with the green 'processing' bar constantly looping.

I read many other posts like this, and went to inspect my rpg_core.js file for my project, and got the following error message:

Windows Script Host

Script: C:\Users\[My Name]\Documents\Games\[My Game]\js\rpg_core.js
Line: 581
Char: 5
Error: Expected identifier, string, or number.
Code: 800A0404
Source: Microsoft JScript compilation error

I have not seen this happen for the 5 months I've been using RMMV up until today, and in the 2.5 hours I've been using RMMV since this first happened, it has happened twice. When this happens, I have no choice but to close out the error message, which then closes out the whole RMMV program, deleting progress when it does, despite the fact that I saved the game before it crashed, but the 'saved' things were deleted nonetheless. This happened first while editing an animation, and then when creating a skill. I have no idea how to fix this, as my drivers are all up to date.

I am running an Alienware laptop from about 2-4 years ago, running Windows 8.1 Pro, with Intel Core i7-2860QM CPU @ 2.50GHz 2.50GHz with 8.00GB of RAM, and a 64-bit operating system and processor.

I could also run MV with my other computer, a Surface Book Pro running Windows 10 Pro Version 1803 with OS build 17134.407 with an Intel Core i7-6600U CPU @ 2.60GHz 2.81GHz with 16.0 GB of RAM, and a 64-bit operating system and a 64-bit based processor.

However, although I am fully capable of running MV on the Surface Book Pro, I prefer the older computer as it is the computer that I best record YouTube videos on. I can record on the Surface, but it does not work as well.

The Alienware cannot update to windows 10, because every time I try, it crashes uncontrollably, purges the entire hard drive and resets to factory defaults. Thus, I have to keep it at 8.1.

If anybody has any help to offer about how to fix this problem, I would really appreciate it.
1.) What version of RPG Maker MV editor do you have? Press Help --> About...

2.) What version of the core files is your project running? Note - this is not automatically the same as #1. Open up any of the rpg* js files in a text editor and read the version number from the first few lines.

Script: C:\Users\[My Name]\Documents\Games\[My Game]\js\rpg_core.js
Line: 581
Char: 5
Error: Expected identifier, string, or number.
Code: 800A0404
Source: Microsoft JScript compilation error

3.) What is on line 581 in your file? Please paste that line as well as a few lines above and below (but tell us exactly which line is line 581)
I am not good at coding so much, but I try to help you as possible. First, where do you buy RPG maker mv from a stream or here? Next question: do you trying to write a code for your game? You try to learn from Undertale or play it? I think you should tell us the full story because of it sounds like you delete or add something to the original code according to your screenshot. It is not about the computer is about your coding.

If it is a code, you have a problem with the code. You need to send a screenshot for an area where you think you might add or delete the code. I am read a code, but not strong enough to write a code yet. A lot of coding in RPG maker mv, it is hard for even professional coder to find the exact line of the problem.
if it worked until now and you got problems a few days ago, that means that something on your computer changed.

first guess would be a windows update - several people already complained that windows updates had removed their display or audio drivers, switching them to microsoft default drivers - and that is a problem for RMMV because RMMV doesn't use microsofts DirectX, it uses OpenGL.
And the resulting error messages were similiar to the one you got.

So go to the manufacturer website for both your display card and your audio card and download their newest driver and install them - do NOT use the integrated windows driver update for this.
Then check again.
Windows Script Host

Script: C:\Users\[My Name]\Documents\Games\[My Game]\js\rpg_core.js
Line: 581
Char: 5
Error: Expected identifier, string, or number.
Code: 800A0404
Source: Microsoft JScript compilation error
This is what you get when you doubleclick the rpg_core.js file.
But that is the wrong way - we never said anywhere to start the file by doubleclicking, we always said to open it with a text editor (right-click open with).
Ignore this message, it has nothing to do with your problem but is caused by running the js file out of context.
@Aloe Guvner I am running MV in v1.6.1 and within rpg_core.js it also says v1.6.1.

RequestQueue.prototype.enqueue = function(key, value){
this._queue.push({
key: key,
value: value,
}); (<- Line 581)
};

@Kupotepo I am running the Steam version of MV and have written no code myself at all.
@Andar I already did that. I knew that windows updates can screw stuff up, and I have indeed recently updated, so I went to the Intel website and updated my drivers from there, instead of from within my computer.
@Xakik, I used stream too. Easy solution is back up your data that you need and reinstall again. That should fix your problem.
@Kupotepo that only helps if it is the editor itself that has been damaged, in no other case - and there are half a dozen other causes already known like windows loosing its drivers and more.

@Xakik what are your background programs? This can happen if a background program blocks the game.exe or the editor for whatever reason (not only antivirus or network security, even a background program for recording let's plays has been known to crash the editors)
@Andar You don't have to worry about background programs. I've done extensive looks at every singe background program that runs because they were the cause of another problem that I fixed a while back, and since then have made sure that there are no conflicts, and so far, both crashes took place with none of the negative background programs from a while back.
@Kupotepo I guess it's worth a try. Even if it doesn't fix anything, never any harm in trying!
@Andar, The reinstall would help to reverse to a stable state of the software. When I delete or add something by accident, I reinstall the software and it works fine.
@Kupotepo exactly - I never said anything else.
I only said that in most cases the instability comes from something outside of the software, and that reinstallation can't change anything outside of the software itself.
@Andar, thank you for a response. First I think like you are thinking, but @Xakik said he already checked you're suspicious. It is not the case. I use detective reasoning. Then, it must be something wrong with this software. If you look at the computer error, it said something about "undertale" game.
I believe Undertale Game is the name of his project.
@mlogan, thank you for your information. I thought is a popular RPG game undertale.

Original thread: https://forums.rpgmakerweb.com/threads/frequent-crashes-in-rmmv.102626/