how do you stop yourself from making irrational moves?

Mathematician, eh?
When you are ready to move ..... don't. Force yourself to go over the entire position again. Forget the clock. You might lose on the clock, but ask yourself this -- "How many games have I lost to my opponent and how many to the clock?"

What not making a move good point maybe sitting on your hands is better that way you can't start a game 🤔

Sit on your hands.

Give up chess...or else learn from your mistake and repeat your mistakes until you make rational move..always try to find better move, Edison also failed to find reasonable material for electric bulb filament..