Game over when party member leave HELP?

I can't understand what is happening. When I remove a party member, it gives me Game Over and BUM! To main menu. I don't understand what is going on. There is no thread about this. Did I make an issue or some sort of bug maybe? I don't know program that much but this makes really big problem about my game. I need to solve this! Can someone help me please?
Does removing the person result in 0 party members? If so, that's probably what's going on.
I don't think having 0 party members makes a game over, but having only dead people left after removing them does.
what plugins do you have installed? Even an empty party should not result in an automatic game over, there has to be something else causing this. This would only happen if you're removing party members while in battlescreen.

additionally, please tell us how you're removing the actor - a screenshot of the event would be best.

Original thread: https://forums.rpgmakerweb.com/threads/game-over-when-party-member-leave-help.118976/