When I go to fight in the gym, the moment one of my pokemon gets KOed, it causes this thing that pops up that claims there was an error in the battle, and acts like its stopping the fight, then restarts the fight, then makes it where if you get another KO on your own pokemon, it just keeps doing this error as a loop error till you can KO one of theirs. It makes it impossible to especially battle a trainer with Wobbofett, as this is the pokemon that causes the KOs to happen the most, and makes it almost impossible to get past that one pokemon, since the battle restarts entirely, meaning you need to first KO all the pokemon before the one that KOed you, rather than just switch to a new pokemon, to KO that current pokemon.
This is the error code that pops up when it happens;
[com.pixelmonmod.pixelmon.battles.controller.log.BattleLog:onCrash:235]: at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
[01:47:05] [Server thread/INFO] [STDERR]: