Here you go. The academic term is 'coup proofing' re: structural adjustment to impede it. There's broadly a trade off in terms of
institutional inefficiences (e.g. having say, 4 or 5 difference Intelligence agencies and siccing 'em on each other).
https://www.amazon.com/How-Prevent-Coups-d%C3%89tat-Counterbalancing/dp/1501751913