I wonder, and this is just wild speculation, I wonder if incoming damage from multiple sources throws off the internal timing for the Ankh check?
Damage is received on your character as timed "events", which can overlap if you receive lots of attacks.
Current code checks if you have mana and know the Intervention skill, then casts it and, (as it assumes you're now alive) bypasses the Ankh check.
Theoretically it is possible, although very rare, that a damage "event" arrives between the mana check and the actual attempt to use the skill. It's one line of code followed by another, so chances of it happening are extremely low, but I can't think of a different explanation.
I added an extra check after calling Intervention skill, and only if you're now in positive HP it bypasses the Ankh check. It'd be nice to test Intervention extensively when beta testing is available, to make sure this doesn't have any unexpected consequences (I doubt it, but paranoia is always good in my line of business)