There are no solutions to that which wouldn't sound absurd. But if you could get past absurdity...
Politicians should agree to to be executed if they lose an election. Only those willing to risk their lives should be allowed to legislate. This also gives the voters the option of punishing those who pass onerous laws at the next election.
If you need extra zing, this would also apply to recall elections, so they could even be punished early.
I think it would be better if they agree to be executed if they win the election, after serving their term.
Maybe a less extreme version of this is that if you become president you are stripped of all property and become the ward of the state after your term is over, enter a monastery sort of situation, for the rest of your life.
Yeah let's ensure only the craziest, most desperate for power type to be the regulators.
Hitler knew if he had lost, he would have been executed. Didn't stop him from going war.
One could argue that Putin won't stop the current war against Ukraine for the very same reason. He is obsessed with Gaddafi's undignified end in a ditch and cannot be seen as weak.
The GP's idea is very bad. Quite to the contrary, losing power should not come with disastrous personal consequences.
If they can't be punished for continuing to push bad laws, then they will continue to push them... because they benefit from those when they inevitably pass. So there are no solutions. You live in a world where Putin still exists, is still doing these godawful things, but the suggestion that if a politician loses an election his life is forfeit makes you fear that the things that already happen would happen. Or something. It's sort of sad.