I went through two breakups where my family thought I was going to need to be put in the hospital from lack of appetite.
First one was three months. Thought my life was over. Couldn't sleep, eat, or go more than five minutes without thinking of him. Second was a rebound from the first.
Here I am years later, married to a person so exactly perfect for me that he might be tailor made. He's three times handsomer, smarter, and sexier, and treats me better than either of them. Whereas they tolerated my quirks, he celebrates them.
Try to have faith that there are reasons it didn't work out, and someone better will come.