Is OTHER wrong in the post ? POST : (Maybe important to note, we're both gay guys)

So a bit of backstory, recently my boyfriend left me for the sake of his mental health - basically he has anxiety and the relationship was making it worse because I'm not exactly in the best space mentally - and I thought that was all fine and good, however, he then got annoyed with me for telling my friends about it, he posted on his Instagram "yes, me and redacted broke up, if he's allowed to talk about it I am."
One of my friends tried to talk to him about it, basically saying he was being to blunt with everything (the same day as the break up, before it actually happened though, I had been pretty upset yet he refused to talk to me) and he understood why we broke up but he could've tried to be nicer about it. I started to think my ex was being selfish, however since it was for mental health issues I'm not sure.

Tl;dr: my boyfriend left me because our relationship was damaging to his mental health, he then went on to be annoyed when I told my friends about it, and one of my friends messaged him calling him selfish for not caring how I was feeling.

I was sure he was just being selfish yesterday, however now I'm not so sure.

So, Reddit, am I the asshole?