Boyfriend won’t treat me well and has his “reasons”?

This is a long story but I’ll try to make it short. So I’ve been with my boyfriend for over 10 years and we have children together. No we aren’t married for several reasons.

My boyfriend treats me very badly and I also don’t treat him great either. The difference is that I try to solve problems and make things better but he told me he’ll never treat a cheater good. He gets angry when I try to make things better….. extremely angry when I try to bring up any issues and ask him to be better.

Around 5 years ago I was crying my eyes out to him because I want a connection and to feel loved and he told me he didn’t want to be with me and that I should go be with another guy. Instead of breaking up he said all this to me and I went to sleep crying every night (he knew this) but he just got angry with me and fell asleep each time. I started posting some “sexy” pictures (which really are very mild compared to others I’ve seen online) and I got A LOT of male attention and messages.

I chatted back with a few guys and ignored all the others but my boyfriend went through my phone and went ballistic and was VERY VERY upset! He even tried to make the relationship better for about a week or two! That’s it then he went back to being bad to me.

Now he treats me terribly and we still have barely any connection. I just had another baby with him about a year ago, but even that hasn’t brought us to be much better.

This is just irreparable isn’t it? I’m at my wits end. I don’t know what to do. We have children and I feel like that’s why I’m staying. I don’t want to give up and I don’t want to cheat but it’s just the same thing again and again. I try to talk and make things better but he refuses to with a “cheater”. It’s like he’s staying with me to punish me or to make me leave him.

Updates
11 mo
Also wanted to say that it never went beyond messages to any guys and I was looking for some attention or maybe to find someone better than him eventually but I wasn’t going to physically cheat or develop any emotionally either besides getting complimented by them or them trying to ask me out on dates which I would ignore. Him calling me a cheater is wrong to me when he’s done many things in the past that made me lose trust. He’s also lied to me several times.
Boyfriend won’t treat me well and has his “reasons”?
Post Opinion