The condition you are referring to is called "cognitive dissonance." Cognitive dissonance is a psychological term that describes the discomfort or tension experienced by an individual when they hold two or more contradictory beliefs, attitudes, or values, or when their beliefs and behaviors are inconsistent.
When people experience cognitive dissonance, they may find it challenging to accept new information, ideas, or experiences that contradict their existing beliefs or values. This can lead to resistance or an inability to acknowledge or understand the reasons for their discomfort. In such cases, individuals may experience emotional distress, become defensive, or avoid confronting the conflicting information.
The concept of cognitive dissonance was first introduced by psychologist Leon Festinger in the 1950s. He proposed that people are motivated to reduce the discomfort of cognitive dissonance by either changing their beliefs to align with the new information or rationalizing their existing beliefs to reduce the inconsistency. Cognitive dissonance plays a significant role in shaping human behavior, decision-making, and attitudes towards change.