You are judging yourself and others in the wrong way and have bought into the falsehood that people are good or bad based on performance. You therefore take criticism as a threat to your virtue. Don’t judge yourself or others by performance. Once you’ve fixed that problem with the way you view others, it will also fix your own self esteem problems.