There are two situations that can over-inflate the ego and they’re just on the opposite sides of the scale: when a person has been led to think he/she is so very important or when a person has been traumatized.
Either way, the path downhill through is the same.