Similar to how we investigate and figure out airplane crashes, the system should not allow you to get into those situations in the first place, that's the solution that works across time, instead of for just individual situations.
For example, how is someone who led/incited an insurrection against the government able to become head of said government? Already there, something is gravely wrong. You don't let undemocratic leaders lead a democratic society. So the system is broken, and the current administration is proof of that.
Otherwise what other commentators said will happen, someone who might even be worse than Trump will eventually lead the country.