You can`t fix everything. No one can. You wanted this relationship to work, and you did everything you could. And now you feel like you have failed. You didn`t fail.
Once you stop seeing yourself as the one who has been left, and instead, the person who deserves someone better – someone who appreciates you more, you will gain the strength to move on.