What about Nixon’s impeachment and resignation? What about Trump being a convicted felon 5 ways to Sunday (yes they overturned this since he won again, but I doubt it would have gone this direction if he’d lost.)
The reality is the system will bend itself to avoid the problem, because it's been designed to avoid that problem.