Should I leave?

I have been with my boyfriend for almost 2 years. I love him to death and I know he loves me but there is always a problem that comes up that affects our relationship. He comes from a very difficult family life and the same problems keep happening at least once a month. When those problems occur he tends to act very towards everyone, especially me. He becomes very negative and hostile. I try to hear him out, give him advice and be there for him but it just makes matters worse. A argument always begins because he says I have no idea what he is going through because I have had it easy (which is not true and he is aware of it). I’m slowly getting tired of having his own family problems affect our relationship. Sometimes I get to the point we’re I just want to quit but I wouldn’t feel right leaving when he needs me.

Any advice on what i should do?