I work on teachable moments like when we see a TV show or read/listen to a book together. I model empathy like, "Wow. It must be really hard..." and "How do you think it would feel if you...." My son is 2e so we talk about how everyone has struggles and we are all different.
My DS7 also shows perfectionism which I consider to be part of the same issue. If at a fundamental level you find your value tied up in performing well, it is easy to get stuck in those give up/try harder cycles and be critical of others who don't make the mark.
Ultimately I want him to understand that his personal worth and the worth of others isn't about being "the best". I want him to appreciate the value of putting in the work to get somewhere challenging and know that trying new things and making mistakes is the best way to figure out what you need to learn.