Maybe the answer is to keep inventing better religions. The old ones keep appearing more and more ridiculous and pernicious. I suppose this trial and error produces lots of cults and casualties.
Or maybe the answer is for people to grow up and take personal responsibility and truthfully examine what we really know about life and stop trying to hide from reality. That's the path I personally have chosen. But I think the first might be easier on a mass scale. IDK.
And we clearly have a strong need for social belonging, most of us.
Spiritual experience is scientifically measurable brain activity. People enjoy it.
Having been wounded in this way, people seek any path out of their suffering.
Spiritual experience is observable in the brain, but it is certainly not understood, nor are the mechanisms. This is equally true of psychedelic experiences caused by drugs.