"Everything we experience -- no matter how unpleasant -- comes into our lives to teach us something. To move on from something difficult, look for the lesson. Start by asking yourself: 'If this is the way things are supposed to be, what can I learn from it?' Think about how you may have contributed to the painful experience, or if there was anything you could have done to prevent it. Often we don't realize the lesson because we'd rather avoid reliving the pain. But once you allow yourself to reflect on the sadness, anger, guilt, or shame you've been hiding, those feelings will begin to subside. Yes, someone hurt you. Once you've forgiven them and let go, you can move forward and begin creating the life you desire."
That is called in our language "Tikkun". Make a tikkun. You can fix everything. How did Rebbi Nachman say it? אם אתה מאמין שאפשר לקלקל תאמין שאפשר לתקן - If you believe that you can mess things up, believe that you can fix them, too.
והשם יהא בעזרנו