This is based on the saying that there is a silver lining in every failure. It is about learning from your mistakes and becoming a better person day by day. There is something to be learned and gained from every mishap, no matter if it is a minor one or a serious one.
But to be ready to learn this lesson, you have to be open to understanding and accepting of your own shortcomings. And much of this starts with your own humility. If you steadfastly obsess with your own perceived greatness, you will miss all the important lessons God and the Universe is trying to teach you. As Fyodor Dostoyevsky wrote, “Humility is the greatest human trait”.
Being humble allows you to be open, and your ego is at its lowest (which is good), because then your ability to accept and understand everything negative that is happening to you is working. When disappoints arise, learn to accept them with a neutral disposition, and try to gain enlightenment and peace. The next time a similar situation develops, you may approach it with wisdom.