Discouragements don’t last. You failed, get back up and try. Try until you don’t get another opportunity, or try until you make it. Life is more than just grades, as important as they may seem.
Look further, look outwards and look inwards. Figure out what really matters and go give your all.