Husband can be so extreme

Hey everyone so I’ve been married to my husband for almost 5 years. He’s improved a lot with his maturity but when a negative situation arises or he doesn’t like something he gets sooo negative an down. He’ll swear and his overall mood is hard to deal with. I’ve learned Over the years to learn how to cope. Most the time he’s great, of course no one is perfect but he’s very caring and goes out of his way for everyone no matter what, but once he doesn’t like something he’s so negative an people tell me to just let him be but I let others emotions get to me too much an it is not healthy. I go to therapy an I really want him to come but it never happens. Idk I guess I’m just venting cuz i feel alone.