I checked the spell you mentioned, Cleansing or something like that. I didn't see leaks. I couldn't locate the other spell.
I suggest you disable triggers and test the map and see if the crashes stop.
One possibility came to my mind, could it be that some create unit functions trigger unit enters map triggers, and cause an infinite loop?