Crystals can end up in a bad state in certain conditions which causes an exception on the expected number of crystals going negative. This ensures the crystals/pillars are in expected state when the dragon spawns.