It seems that your gambling is tied up with your work life too which makes quitting even more difficult, but I think you are right – you need to change your work if you are going to get out of the mess you are in.
I would say that it makes more sense to get ANY job at the moment – rather than hanging on for one which will be “helping people.” That can come later when you are more stable in your recovery.
The tools for stopping gambling are all outlined on this site and I am sure you are aware of them. YOu will need local support – possibly from counselling or from a self-help group like Gamblers’ Anonymous, few people crack this alone.
If you are really worried about yourself – please phone someone: a list of helplines by country is available here: https://www.befrienders.org/ I wish you well.