Sometimes relationships and events repeat themselves in our life so that we can learn the lesson. Keep telling yourself that this time will be different. Take the time you need for self reflection and show yourself some love and kindness. Time to forgive yourself. You did the best you could at the time, the relationship is in the past, but don't let it rob you of your future.
Maybe a break from social media too to kill the temptation to obsess over that which you have no control.
Today, take yourself by the hand, be your own bestfriend and take baby steps towards building the kind of life you want and being the person you want to be. Be patient, it will get better if you just keep on going.