I’ve found refuge in the thoughts of karma:
Now as a man is like this or like that,
according as he acts and according as he behaves, so will he be;
a man of good acts will become good, a man of bad acts, bad;
he becomes pure by pure deeds, bad by bad deeds;
And here they say that a person consists of desires,
and as is his desire, so is his will;
and as is his will, so is his deed;
and whatever deed he does, that he will reap.
— Brihadaranyaka Upanishad, 7th Century BCE
One is like is his desires. In the end if we live up to our best, in the end we will be well.
Another train of thought, I like to entertain is that of philosopher (stoic). With few desires there needs are easily fulfilled and life is lived happy.
Avoiding desire is difficult and requires effort. It also involves dealing with thoughts such as:
I am not my grades
I am not my past
I am not my thoughts
I am not my salary
I am not my net worth
Most of these I’ve found to be incredibly helpful thought, each one has been kind of like a breakthrough, giving up a desire is acquiring a piece of bliss.