I don't know what to do

Back in 2015 I lost my virginity to this boy and things ended badly. I miscarried and it was the worst time in my life. I had this cousin who lived in another state and I would call her and cry to her about everything. About him, about the baby I was heartbroken. I met this boy when I was 14 and it turns out they had some sort of history. I knew that they had kissed but that was it. This was all before he and I met. So I wasn't too bothered by it. Anyways back in 2015 I was 18 and she knew how much I had loved this boy. She was there for all the ups and downs. Me and this boy ended up fixing things this year. He didn't know about the miscarriage and were in love. Except today he told me he needed to tell me something. He said she and him had gone on a date in September of 2015. Three months after what happened between me and him. And they had sex. My heart hurts so much I feel like crying and throwing up. My cousin was my best friend. She knew everything. She told me she was a virgin. And she turned lesbian when she was out of state. Or so I thought. I feel so betrayed by both of them. I don't know what to do. Am I over reacting? I'm so confused