Turning obstacles that we encounter into building blocks which help us to strengthen our character is not always an easy thing to accomplish.
But each of us has an inner core, which is there to be delved into and fortified. We have to try to find the ability to lift our down-trodden psyches, up above the fray, to help us soar, to fly like an eagle. If you search for, and build your core, even when you are very disheartened, unless there is a possibility of depression, which should be treated, a little ray of hope will gradually surface and you will find the light getting brighter and brighter.
Not so easy, but as you persevere, in time your attitude will improve and positive change will take place. Tap into your inner core, meditate as much as possible. Strengthen your mind with positive thoughts. You will grow gradually into a stronger person.