All of this is way above my paygrade, however..
There exists this work by Julian Jaynes called The Origin of Consciousness
in the Breakdown of the Bicameral Mind:
https://ia802907.us.archive.org/32/items/The_Origin_Of_Consc...
Seems pertinent, and now I will try to read it again. Perhaps it will be useful for reference by others.