We almost broke up

My intuition is crazy good. Last night I had already planned on asking him, my boyfriend of 2 years, if he stopped loving me or if hes tired of me because I noticed that he’s not a sweet as he used to be and it just seems like he doesn’t really care about me as much anymore. Today we had already planned on hanging out for the whole day which is pretty normal for us. It was kinda ruined when he told me his friend wanted to hangout with him and he said yes even tho it was supposed to be our day. I kinda gave him the silent treatment because I was more annoyed than angry and I wasn’t going to make him cancel his plans with his friend. Before we got into my house out of nowhere he tells me he wants to break up with me. He said it’s because he doesn’t feel like we make each other happy and that I’m so insecure and depressed that it pushes him away and he feels bad about it. He also said it’s not just me it’s how he feels with himself in general. To make a long story short after 2 hours of talking we decided to give ourselves another chance and the problem is I feel like shit because I think the only reason why he stayed is because I cried a lot and almost begged for him not to leave me. I told him this and he said he’s stupid and at fault for wanting to breakup right away rather than talk about our flaws and that he genuinely wants us to work and that he still loves me. We’re still together but now I’m having a hard time accepting the fact that we’re together even tho he told me he wanted to breakup and doesn’t remember the last time he was happy with me. He also told me he only thought breaking up was the solution because he believed he didn’t make me happy when in reality it’s because of bad communication skills. He kept reassuring me that he himself wants to try again and that I didn’t force him to feel a certain way but now I fear that I did and that i won’t make him happy