System Stack Error stack level too deep

I'm using "Actor Voices in Battle" script by DiamondandPlatinum3, but came upon a problem. When I have only 1 character in the party, I get "System Stack Error occurred. Stack level too deep"

At first I tried cutting various battle scripts out to narrow down the problem and that didn't work. Then, I accidentally fixed the issue when I had a full team. I don't know scripting and this is my first encounter with a system stack error. Is there a way to fix the problem so it can handle me having both a full team or less than a full team? Any and all help appreciated.

(script can be found here)
If you Google the text of the error, it's caused by having duplicate scripts (or scripts that modify the same code and therefore conflict).
Well, what Turan said above is the most basic explanation on what should be happening in your game project right now. The duplicated code can only be 1 out of 2 things:

1. You have 2 identical aliases conflicting there.
alias :this :that in 2 separate scripts.

2. A method that calls itself over and over and over again without including any condition or break or return reserved words.
The two posters above described the cause without giving tips to find it, so I'm adding those.

1) to find double scripts, you need to check every slot in your script editor - the most common cause for double scripts is because someone forgets to name a slot after adding in a script, and then later thinks they forgot the script. So especially check the unnamed slots and if they really are empty.

What also can have happened is that two different scripts are overriding the same function in a wrong way. To find such cases you'll have to know which function has been doubled.
and to do that you'll need a better error message, which means a backtracer.

If you don't find a double script, follow the link "how to use a script" in my signature to the bughunting section, it contains a link to one backtracer. Follow the instruction there to install the backtracer, then open the console and get to the error message again.
Provide a screenshot of the console window here for more help.
Thanks for the replies, guys!
Andar, super helpful. I'll take a look at that link and use the backtracer because that sounds like exactly what I will need. Thanks! Will update when issue is found.
Here is what the console said for me: (I didn't find double-scripts)

1707281590688.png
Based on the limited data you could retrieve from it, my best guess would be that you should take a look at anything related to equipment notetags.
Thanks again for your replies, everyone. 🙂 The problem has since been resolved.

Original thread: https://forums.rpgmakerweb.com/threads/system-stack-error-stack-level-too-deep.165501/