I think that you're underestimating the power of authoritarianism. For Iran, I don't think the government was in any danger prior to the war. It was capable of exerting control through the state apparatus quite easily. And look at North Korea, you think that the people under that government are supportive? That's nonsense on stilts.
Also, that collapse you refer to can take an awful long time under authoritarian control.