Perhaps a good cure for continuing the marathon of losses in gambling is an internal and deep understanding of the fact that, no matter how you continue to play, you will face losses, it will definitely happen at some point.
Some people are the cause of their problem, it's not as if they are not aware of the risk of gambling, not that they don't know that they will encounter losses but they kinda have some confidence that they could be very lucky more than anyone else, they forget to realize that it doesn't work like that. From what I have seen so far, there's no addicted gambler that would say "they didn't know that gambling is a game of luck, " They know but ignorant caused them become addicted.