Pain, disappointment or negative emotions cannot be avoided. The best way to deal with them is to allow the process to take over.
To lead you and guide you, but better you can speed up the process by keeping a daily journal and meditate as often as you can.
The pain may not go away immediately but you will get a better shot at understanding your emotions, strength and in the process, you may find clarity on your next move. Whatever may happen in your life whether happy or sad.
Find time to process your emotions, understand them and allow your body to break free from the pressure of emotions.