How stop obsessing over my ex-girlfriend?

I (21M) and my ex (21F) were together for 2 years and 5 months. We broke 18 days ago and have almost no contact during this period. I wanted to make a post about how I handling the breakup. It started really bad. The first three days I was in denial about the fact that we were broken up. The first week I did not have a sober night. I could not sleep. I woke up in a shock every few hours because I had this reaccuring dream whene we are laying on my bed and talking. She suddenly says that she has to go. I try to stop her but can't speak. Still was always every night the same dream. In the end I had to throw my pillows away and buy new ones for the nightmares to end. During the days of the first week all I did was stare at my phone waiting for her to text me and praying (I am not that religious) and crying. I stopped eating. I went from around 2000 calories per day to less than a 1000. I have lost around 6 kilograms. On the 9th day of the breakup I woke up still drunk and told myself that with alchohol I only try to escape from the problem not fix it and I have not drank any alchohol since. Last Tuesday 20.10.2020 I had hallucinations about her while in my apartment. I could clearly hear her voice and we talked for a bit discussing our relationship and what led to this conversation with a figment of my imagination.

After I met her a few days ago she told me that she is already dating someone new. The nightmares returned. I keep seeing them together in my dreams and they keep on repeating. I feel so alone at home and when I feel alone some bad thoughts come into my head.

She was my best friend and she was the person I always relied on in any situation. I don't how to move on. Everyone says that I should just find someone new but I would not want to be with anyone else when I have not gotten over my ex because I would always compare them. Does anyone have any solid advice except time on how to reduce my need to talk to her and see her?
How stop obsessing over my ex-girlfriend?
Post Opinion