My biggest answer to this would be by not comparing yourself to anyone else! Everyone has struggles and failures even though you (as the person comparing yourself to them) don’t see it.
So: focus on excelling where you are, use the resources around you to be excellent, and once you make it, reach back and help those who are behind you! Don’t dwell on mistakes- use them as a way to do better, and don’t repeat the same mistake twice:)
Lastly, find friends and family who support you and who can help you remember how awesome you already are, and help you continue to become better.