It is very interesting when you explore the neurological mechanics of this. A narcissist is rigid thinking dialed up to 11. It is essential a special and pathological “skill” their brains have learned. They do not have to update their priors or spend metabolic energy on almost anything their life. Their brain figured out the best way to survive and conserve energy was to avoid costly updates to their beliefs. Repeated over years and that system becomes deeply myelinated, a core identity. Unwinding that is a feat.
Some people just have a more narrow set of rigid beliefs (e.g. religion, work skills, etc).