I am so sorry to hear about your husband. when you say he is not very nice; it sounds as if he is more angry with himself and not with you. Possibly he has got into debt and can't tell you about it.
A friend with a similar problem of a lifetime's gambling said; he had to hand over all finances to his wife. He could not trust himself with money or bank cards. If he needed a couple of pounds for work, she would only give him two pounds. He handed his phone over and just got a phone with no internet and had no access to a computer at home without his wife being there. He banned himself from all the local bookies. You just have to go and say you have a gambling problem, please ban me, and they will.
This was eight years ago, and he says he is a changed man, who still has the urge to gamble, but knows he can't do even one bet.
I hope you find a way forwards with your husband. You could try giving your husband similar terms, if he wants to stay with you.
Please ignore if you feel this is not for you, but it seemed to work with my friend because he was rock bottom with nowhere else to go.