I believe it is caused by combat passives on dying characters (like poison, stun, etc.). When a lot of passives are in the game, it sometimes crashes at battle end or character death. I'm narrowing in on where the exact crash is but haven't quite got it yet. (I thought I'd fixed it in build 11, but it looks like it's still appearing).