The best solution is always related to money management. You must avoid to be tricked by your emotions. I have zero emotions when gambling.
This means that a lose or a win bet have the same result on my mood

Play like you're trading.
No favorite team. No superstition. No random / lucky numbers for your jackpot. You must play in a "mathematical" way.
This will include some easy solution for your gambling:
- have a budget!
- use cold wallet!
- play only games that you know well!
- register result of your session, this allow to understand how you're performing.