To avoid stress when gambling , it has to be simple: first, don't Gamble at the casino when you're in a bad mood or having a bad time, gamble when you're not Sleepy , don't gamble to make a profit because you're in need of money, and only gamble the money you're willing to lose It's that simple , and once you lose the money you're willing to lose, don't gamble anymore.
This is simple but still very important, your emotional state matters a lot before you think of gambling. The worst thing someone can do is to use gambling as an escape from emotional instability, doing this would only cause more problems for Yourself. Another important point you mentioned, gambling when you are in need of money. At some point we have all been guilty of that but experience has taught that it only causes more harm than good. Desperation leads to irrational decisions.
Gambling would be a ridiculous idea when you are in a state of mental distress, as your collective thoughts are concentrated in one place and you are in a state of distress. A person may be in a state of depression for any reason, be it job loss, family turmoil or losing too much money in gambling. At every stage, you should exercise patience and focus more on physical exercise and entertainment. Even if it seems ridiculous to you, you should still refrain from gambling. You are more likely to lose when gambling during a mental distress because you will not be able to concentrate on the game or you may make mistakes in making simple bets.