It's not just after sieges, I've had crashes after normal battles too. But not every siege or battle, only sometimes, and I haven't been able to discern any pattern to why some and not others. Although, the scenario you mentioned does happen often.

I'll try the thing you suggested, about waiting for awhile after exiting a battle.