OP - Allow me to play pseudo psychologist on the internet because i dont do it often. This may be nonsense but maybe it will allow you a different perspective:
When people are really smart as kids they get very used to that superstar status for intelligence.
They often assume that due to being hyper-intelligent they will automatically achieve great things in life.
But then life hits and life doesn't reward intelligence as much as school rewards it. Life rewards hard work, perseverence, luck, people skills, and positivity. And suddenly that kid that was once a superstar sees all these people that are less intelligent than him go past him and achieve greater things. He even works for a boss that is considerably less intelligent than him.
So, seeing an imbalance between his expectations and his reality, he needs to find excuses for why he isn't super successful. The easiest way is to say that it's due to 'self sabotage' and constantly use gambling to put himself in to bad situations. He can at least feel alive when his back is against the wall and always has an excuse for why he hasn't "made it", despite his very high iq.
If this is at all true, the accepting it is the first step. The second is getting banned from all casinos and card rooms, joining gamblers anonymous, accepting some humility, and starting to work hard. You still sound young, you have barely lost anything, are barely in debt, and from the sounds of it aren't bad with women. You could be back on track to success in a year, and leave gambling in the dust.
Anyway that could be a whole bunch of ridiculous nonsense. Idk.