No matter if you win or lose, you should always integrate short breaks into your gambling sessions.
A 5 minute break on the balcony with fresh air will make you think clear again.
It is easy to say but hard to implement. I have tried to control my betting size as well as time of the session. But with time and at some point everything fails.