In ancient times, people having this experience entered protected environments such as monasteries—places where those around them would understand. They’d be put in a nice little cell and left alone to let the process happen.
This is where the spiritual ego comes in. It is a protective process and also a vestige of the need for a contextual sense of self.