There is an obvious similarity between behavior that contemporary psychiatrists would regard as psychosis, delusion, etc. and the assertions of those who are regarded by the religious as prophets and receivers of revelation. The principle difference is timing. In the former instance the scene is the present and in the latter instance the scene is historical.
Who has written on this? I suspect that in general terms Richard Dawkins, Daniel Dennett, and Sam Harris may have discussed the issue. Has anyone made a serious attempt to examine the most prominent historical instances of revelation through a lens of modern psychiatry and neuroscience?