Sad Boyfriend?

My boyfriend has been feeling kind of blue lately. I do my best to make him feel better but he always ends up mad at me. When I give him space, he says I'm ignoring him and when I try to comfort him he says I'm making him feel worse. He keeps saying I'm being a bad girlfriend and that I don't care about his feelings even though I'm doing literally everything I can think of 😔 he's apologized for his behavior as he knows he's being unreasonable but it keeps happening! any advice??