To handle the emotional pain, you should first give yourself permission to feel all the negative emotions. Then, you can seek support from your family or other reliable people. They can provide comfort and understanding. Another thing is to keep a positive mindset. Remember that this is just a setback in your life, and you will get over it eventually.
Handling the emotional pain isn't easy. Start by taking care of your physical health. Eat well, exercise regularly, and get enough sleep. This will help improve your mood. Also, consider seeing a therapist. They are trained to help you deal with complex emotions. Try to focus on your own growth and development, and don't let this one situation define your whole life.