How best to get over it?

Hii! I got broken up with about a month ago so my ex could move onto someone else basically immediately because apparently within a week to a month of me needing to focus on myself a little more they had fallen out of love with me?? Anyways; I was deeply in love with them, especially because they were there for what was some of my darkest moments. It was just over 2 years we were together. How do i get over this? It’s been a month now and I’m still longing to just talk but they hate me because of how poorly I reacted to everything. I’m disgusting and give them the ick apparently. I used to talk to them for hours every day and now I have no one to talk to; let alone about serious things like my mental health as I have autism so it’s a little harder for me to make friends, talk consistently, and then trust them enough with such private info. Unfortunately due to the circumstances that made them not love me, which was a mental health breakdown basically due to my ocd, I’m in the worse state I’ve ever been mentally. I’m fully aware that they’ve moved on already, and over me, even if they insisted they still thought of me in a romantic light. I’ve even relapsed due to how much everything has messed me up, what they said to me ect. All I want at the moment is to not think about them as I fall asleep and getting mad over and over to the point I keep dreaming that I’m reliving that week over and over.