Assuming you were in a fairly fulfilling relationship that lasted more than just a few months (otherwise you wouldn’t care about getting over them), you need to lose the assumption that you will be able to completely get over them. You never will. The time that you spent with them contributed to who you are today and you should never be ashamed of that.
What you will do is learn to live with the idea that what you had was great while it lasted but now it is time to move on. Like a day at Disneyland, it was fun and you wish you didn’t have to leave but the reality is, you were not able to stay. So you walk out those gates with a smile on your face and the knowledge that one day, you’ll return again. It may not be the same place, but you know what you are looking for and you won’t settle for anything less.
Yes it will hurt and you will want that to end. It will. But, as cheesy as it sounds, the pain is the proof that what you had was worth it. If it didn’t hurt, the relationship would not have been good enough. It’s the price we pay.
So, remember the good times and smile. Reflect on the bad and think of what you’ll do different next time. Then take a walk and get some sun. Read some poetry or write some of your own (even if it’s shitty, who cares?! It’s just for you). When the thoughts come back embrace them, cry and start the process over. Every time you do this the pain will lessen until you realise that, while you will not get over them, you will be ok. You’ll realise that you are strong, important and worth it.