Oh man, I was sick like that too. Except without the passing out; I'm very careful with that.
I've managed to lose consciousness a few times before, usually when lacking sleep / food. It sucks. Hit my head pretty hard once too. :/
Luckily my mom was standing nearby to wake me up.