You are not defined by your grades and are worth infinitely more than what is written on that piece of paper. Hold your head high knowing these results are just a part of your story.
Celebrate with those who celebrate, stand with those who are struggling. Your character is so much more important that your results (& re-sits are always there if needed!)