Having problematic behaviors related to gambling, such as chasing profits, thinking you can best the house, that your luck will turn etc. has a lot to do with anxiety. In many countries there are readily available resources and public infrastructure though which people can seek and receive assistance for issues like addictions. But the sad truth is that many countries also lack the resources to provide such services to their local population.
So it's important to emphasize that while resources for self help can be good, they can also do more harm than good in certain occasions, so it's good to remind everyone that if available, the best option is to always work with professionals.
Now with that out of the way, I feel like it's important to recognize that anxiety contributed negatively to his one might approach gambling. First step with dealing with anxiety is to recognize it.
https://www.mayoclinic.org/diseases-conditions/anxiety/symptoms-causes/syc-20350961The way to deal with related thoughts when they emerge is to have a mental response that is full of logical arguments each time these feelings come up. Think of why anxiety isn't a reasonable feeling, think of your schedule, why it's not worth to gamble again etc. These can depend on each person's circumstances.
Personally I felt a lot better finding and reading a cognitive behavioral therapy book in my local library. I made prints of the most important pages and kept them with me for a while. Dealing with anxiety and keeping it managed can help with many aspects of life actually. Always best to combine written cognitive therapy resources with visits to s licensed professional if you can though. But even reading a CBT book alone can provide some helpful advice to dealing with anxiety.
Now when it comes to realizing that you are affected by physical symptoms of stress, there are also some exercises for that. You can look up breathing techniques, and see if these help you. Even the simplest form of breathing in from the nose and exhaling deeply and slowly while sitting down can be very helpful for some.
Feel free to share any tips if you have them.