Sounds like you had a
vasovagal response while you fainted. "Out of body" experiences are common. Seems like you were thinking about your
ATM network before you fainted and this is probably what dictated the content of your experience.
Go to a doctor and tell him what happened -mention that you hit your head. Fainting could be a sign of something bad.