shmirashachaim: I can definitely relate to your experience!! I've been married now for several deacades, bli ayin hora, but when we were first married, every time my wife got upset at me, I assumed she'd leave! But Boruch Hashem she never did, and just because a spouse is annoyed with what you've done, it doesn't mean she hates you!
I still have serious problems responding to someone who's angry with me, I tend to fall apart. I think I've made a lot of progress in that area (with counseling and personal experience), but I'm still not where I want to be. My father had a serious "anger management" problem which affected me deeply. If for some reason I get depressed because of someone's anger, that's when I weaken and my yetzer hara can get the best of me, G-d forbid. That's when I go online and do what I know I shouldn't.
I'd say the best way I've been able to deal with this, is by trying to think POSITIVELY. If my wife is upset with something I've done (like coming home late from work), I think that her being upset will pass, and I'll try to do better next time. These thoughts bring me out of the funk I get in, and as a result I feel less vulnerable to my yetzer hara. It gives my the strength to say NO to giving in to my addiction.
A famous Chassidic quote, often said by the Lubavitcher Rebbe, is, "Tract gut vet zein gut." It means that if you think about a situation with a positive outlook, the situation itself will actually become a positive one. My wife always encourages me with this outlook, and believe it or not, IT WORKS. The biggest problem is always being aware of it. The Yetzer Hara is always looking to find a way to tempt me, and so he lets me "conveniently" forget it until it's too late. The challenge here is to be able to bring this thought up in my mind during a difficult situation.
Hatzlacha in your journey and may Hashem bless...Joe