I don’t know what to do.

Me and my boyfriend haven’t been together for 2 months. We’ve been working on things and trying to work out but it wasn’t working out.. so that’s why we ended things. We’ve been in a long distance relationship ever since May 2019 ( Hes in the military ) He never showed me love .. He hurt me with things he’s said and he’s put my down a lot.. to the point where I wasn’t happy in the relationship. W e still contacted each other every day. Anyways, yesterday I texted a guy. We were texting on Snapchat for 4 hours. We talked about sex and hormones . We didn’t talk about doing it with each other, we were just talking about it. I felt guilty about it. The day before me and my ex were talking about how we’d make a plan to work out. The same night I texted the guy for 4 hours.. I told my ex and he hates me. He never wants to speak to me again. We have been together for almost 4 years and now I feel I really lost him forever . I love him so much. I do. But he said I would have never flirted with a guy if I loved him. I never cheated on him nor flirted with men while me and him were together. We were broken up man.. it doesn’t justify what I did but he’s acting like a fucked this dude or even kissed him. Or even touched him. Which I never have. I feel miserable . I feel heartbroken I hurt him. But I do love him man. With my whole heart and he’s telling me I’m a liar. He doesn’t want to speak to me. I feel like a made a huge mistake .. I feel so stupid . What should I do ? Please someone help me I feel my heart is literally breaking.

Why would he think I dontlove him? I love him with my whole heart . And he’s calling me a liar and saying “ 3 years for nothing “ and telling me to delete pictures off our Instagram and that hes going to delete all pictures and I asked him to hear me out and he said no.. i really hate myself for hurting him. I regret it so much.