I have an understanding/interpretation of the philosopher Kierkegaard's metaphor of the Knight of Infinite Resignation from his work Fear and Trembling [1] that relates to this. He tells the story of a Knight that falls in love with a princess. In the olden days princesses were married off by their parents for political reasons. There is no way his love, even if it is returned, can ever be fulfilled. So the Knight re…
A lot of this emotional anguish can be quashed with what might be considered "rude" pragmatism. Remove what is useless, ignore what intrudes and cannot be changed, get on with what you have and don't dwell too much on what you do not have.
Another way to frame this is from a Biblical perspective: be thankful for what good things you have and do not yearn for what you have not been given. Everything in this life is a gift. Every penny you earn, every breath you draw is more than you deserve. In that light, the life I have is wonderful, and full of joy and satisfaction. I have so much that I do not deserve, so many good things and many beyond the limit of my awareness. So I choose thankfulness before the pain of seeking that which is not, that which is unattainable, or that which is long past.