Father Chazal, in the video posted on this thread, speaks about the problem with the "immediate loss of office" idea.
He says, at the 1:32:33 minute mark:
"There is something about Divine Right. It is not that we say, I repeat, it is not that we say that they are not going to fall; they fall by Divine Right, but in the time of God's choosing."
------
Father then provides examples, mainly from the O.T, where God removed heretics or those who caused grave scandal.
At the 134:54 minute mark, Father says:
"There is no evidence in scripture for the immediate loss of office for the crime of heresy. We don't find it."
------
Father Chazal then provides good examples for this in scripture. Really excellent refutation of the "ipso facto" view, IMO.
https://www.youtube.com/watch?time_continue=5727&v=zkoG3rznTwQ