The kind of complex you are referring to is often called "inferiority complex" or "competence-jealousy complex."
An inferiority complex is a psychological term used to describe a pattern of feelings and beliefs where an individual perceives themselves as inadequate, less capable, or less valuable than others. This can lead to a range of emotions, including anger, especially when someone else demonstrates greater skill or ability in an area where the person with the complex considers themselves proficient.
In the context you described, the anger may stem from a sense of threat to one's self-esteem or identity. The individual might feel challenged by the other person's competence, which triggers feelings of insecurity and the need to assert their own abilities.
It's essential to recognize and address these feelings of inferiority in a healthy way, as they can impact self-esteem, relationships, and overall well-being. Engaging in self-reflection, building self-confidence, and focusing on personal growth can be helpful in managing and reducing the impact of an inferiority complex. Seeking support from a mental health professional can also be beneficial in understanding and working through these emotions.