You can solve this with bankroll management to make sure you never make bigger bets.
If you stick to a certain standard betting type, it will become easier to adhere to hit. I recommend never betting more than 2% of your bankroll, preferably less.
i think you are considering a huge amount bankroll for a minimum 2% only for the each bet. It is just applicable on huge bankroll but a gambler have a mid range bankroll amount, i think that it is usual to exceed that percentage and come to the point on all in because it is really hard to control the amount of bet if a person has on a losing streak situation. I always set a limitation on my bet but it always broken once i encounter the long red streak which is usual to occur in every round of my betting