MZ Getting a "cannot read property '_baseX' of undefined" during a battle.

Hello there. I'm new to RPG Maker, and have spent the past week just learning stuff, but I've come upon this error during a scripted battle where the character is supposed to transform after the boss hits 50% health.
The sequence works when I run a test battle, but crashes with this message during the game's playtest.
I have it set to call upon a common event to trigger the transformation and state and it does work during testing. I've checked a ton of different forums and have messed with the settings before coming here to ask.
I'll appreciate any assistance.

Original thread: https://forums.rpgmakerweb.com/threads/getting-a-cannot-read-property-_basex-of-undefined-during-a-battle.171750/