For the first episode, it could have be
en a seizure or
you could have fainted since showering involves standing in a hot environment for a long period of time.
For the second episode, this sounds more seizure-like due to
you striking your head repeatedly and the confusion. There are many times of seizure, and not all of them involve losing consciousness. Did you bite your to
ngue or wet yourself (I realise this would be
tell since you were in the shower)?