Theres a mediation I do, in it, the person who guides it says..
Imagine in this life that everything that you do, you are trying to do what's best for you. You are trying to find the perfect fit, think of the perfect fit and the perfect life. Think about what you want and what has to be in your life for it to be perfect.
Now that you have envisioned that, realize that every other human in life is one the same journey. Now realize that you didnt fail, you just didnt fit into what they were looking for. There is nothing wrong with you, and nothing wrong with them. It just didnt fit
I listen to that with the rest of the guided meditation and I feel better. Then it's just letting myself deal with whatever residual energy is there. Try to learn from the experience