When someone claims to be God ...
... that's Delusions of Grandeur. When someone claims God speaks to them, they are simply interpreting voices in their head as coming from God. Atheists may interpret voices as coming from aliens, spooks, or even the Internet.
This is pretty common, over 1% of people have Schizophrenia or Bipolar. The origins of religion are well understood but psychologists don't want to talk about it!