I had a similar story while I was engaged as well, thankfully it wasn't that much of amount and thankfully I didn't needed the money since it was earned rather than bought so I felt not that bad about it but it really helps you get your life together.
Experience like this gives us the lessons the hard way, we need to loss our money just to understand that we are doing the wrong thing.
When you lose a big amount of money in gambling that becomes your wake up call, there is always this moment where you lose all of your money and you have no more money to actually follow the loss and you have to give a break not because you are smart and that is the right thing to do but because you lost all your money and even if you want to continue chasing the loss there is no money to chase the loss anyway so you stop involuntarily.
We do not consider it big until we end up losing everything or done on what we are doing, that's how we react in gambling because that hope of winning back again all our loses is still with us and instead of following the proper bankroll management, we go beyond and loss control.
Just like the famous song by Kenny Rogers entitled, the Gambler says :
" You never count your money when you're sittin' at the table,There'll be time enough for countin' When the dealin's done",
Gamblers mindset is to win big all the time, they never have a satisfaction and if possible they want to win everyday.