The blame isn't yours. You likely didn't do anything wrong. I had a college friend "dump" me because I represented a part of his life that he was leaving behind and I was too "good" to go in the direction he was. It hurt because we had been close.
I recently parted ways with an online friend I had been close to and honestly, it sucked. Especially since this person had been my main source of human interaction during the pandemic. We chatted nearly every day before the dynamic became too toxic. I honestly cried when we stopped talking. They had been a large part of my life, but I had to put my foot down and end things.
Cry if you need to, but then move on. It's going to harm your mental health in the long run if you don't. If later down the road, you find yourself back together. Friendships go through phases and you might be a better fit down the road.
Best of luck.