Sounds related to Julian Jaynes's book/theory: The Origin of Consciousness in the Breakdown of the Bicameral Mind
It's an interesting hypothesis, but seems roughly as valid as Erich von Däniken's Chariots of the Gods?, that is, not valid at all. Were there any validity to the claim at all, we should be able to find supporting evidence in, say, the brain function of lower primates. It ain't there.
https://slatestarcodex.com/2020/06/01/book-review-origin-of-...