Coup attempts have happened all over the world, and over half have failed. That’s because coups are hard to orchestrate. They are a violation of norms that require quick seizure of multiple levels of institutions with a claim that they are the rightful heir.
Coups tend to fail when government institutions (like elections) are trusted, there is an active citizenry and other nations are ready to become involved.
The role of citizenry is crucial. That’s because during the period right after a coup attempt— when the new government is claiming it is the “real” government — all the institutions have to decide who to listen to.
10 Things You Need to Know to Stop a Coup, from Waging Nonviolence (emphasis mine).