Actor Fusion Problem MZ

I am making an actor fusion system in battle for my game I am running into some issues. I set up a common event that the skill will check. When I add the new "fused character" (using a different actor) and remove the actors that are needed to do skill it crashes the game. When I hit the "X" key after the fused character is in my party the crash occurs.

I also tried to use the "Simple Swap" by Nechigawara (https://forums.rpgmakerweb.com/index.php?threads/simple-swap-battle-actor-0-2c.56806/#comment-560234)
With this version, I apply a placeholder state to the actor using the skill. Then I remove the opposite actor in a common event. I still get the same error message.
if you are using anything but the default battlesystem, your summoning needs to be made compatible to your battlesystem.

About 80% of all more complex battlesystem-plugins add new data to the actors on battlesetup.
an actor added later does not have that new data, so the game crashes when the battlesystem needs to use that new data as it is undefined for the new actor.
that is why you need summoning plugins that know the battlesystem you're using, to add the missing data to the newly added actors or enemies.
bump
@Andar I tried SRD Summon core MZ (courtesy of @Eliaquim) but I still got the same result.
then that summon plugin is not compatible with your battle plugins.

you can't just try any random plugin that has "summon" in its name, it needs to be the summon plugin written for your battlesystem-plugins.

and we can't help there without seeing your plugins, so please give screenshots of your plugin manager with the full list of plugins.

It would also help to get the full error trace of your error message. So when you next get it, please press F8, change to the console tab and give a screenshot of the console output.
I suspect the problem is that you're removing an actor from the party during its turn - stepBack() is the method called at the end of the turn for the battler to...appropriately enough...step back to its home position.

However, you've removed the actor while the game is trying to use it for stuff, so it's undefined when it tries to do the end of turn stuff.

The Summon plugin wouldn't change that if you still remove both actors.

Instead of removing both actors from the party, have you tried transforming the active one?
Here a list of the plugins in my game and console I got when the error message popped up.
you have yep taunt twice, remove one of them.

that said it looks like ATT_Turan is right, you need to either remove the default action sequence from the skill calling that common event, or change the action sequence so that the call to the common event happens last, after the rest of the sequence is completed.
I removed the extra taunt now.

I would like to mention that the SRD Summon plugin worked as a notetag instead of an action sequence.

Although when @ATT_Turan said, "transforming the active one?" it gave me an idea. I would apply a placeholder state on the actor using the skill, I would change the user's face, name and class so it appears as if they "fused". I didn't get a crash as a result.
I would like to mention that the SRD Summon plugin worked as a notetag instead of an action sequence.
that has nothing to do with the point I described.

no matter if it is a common event or a notetag, the summon is executed as part of a skill, and all skills automatically have an action sequence under visustella battlecore.
and as att_turan explained above the original error comes from having the actor replaced during that battlesequence instead of after it.

Original thread: https://forums.rpgmakerweb.com/threads/actor-fusion-problem-mz.153392/