Ultimately it's impossible to diagnose post mortem what exactly was going on in his head.
Anyway, I'm not sure how trustworthy PKD's accounts of his own drug use are.
But yes, it's hard to trust what he said about his drug use.
I say this as a huge PKD fan. Ubik and A Scanner Darkly both had a profound impact on me.
Here’s something I was just learning about in a podcast recently — 2000 years old abd similar to the kind writing that pkd was doing after his breakdown.
https://biblehub.com/library/clement/the_stromata_or_miscell...
Psychedelics and other means of altering consciousness have been used throughout human (and possibly even pre-human) history. In reference to the link you cited, there has been evidence that cannabis, which can have psychedelic effects at high doses, was used in ritual contexts in biblical times in ancient Israel. Here is a recent article discussing some new evidence of this:
https://www.cnn.com/2020/05/28/world/tel-arad-shrine-israel-...
Philip Purser-Hallard: "The drugs did work": https://www.theguardian.com/film/2006/aug/12/sciencefictionf...