Threw up in sleep

I’m 13 weeks and have had a little cough for the past two days.

Last night I threw up before bed and than drank more water so bring back fluid in my body.

When I woke up I was very very very dizzy to the point my stomach got nauseous so I laid back down. I tried to get up slower and just sit up in bed and got dizzy and almost blAcked out, so I put my hand down on the bed to stop my upper body from falling, and the blanket was damp. I smelled it and smelled like vomit, so I had my s/o smell it and he said yep I bet you threw up while sleeping.

Is that possible? Why didn’t I wake up if I threw up? And why am I so dizzy today. Someone help

Edit/update :

Today I have a small fever for 99.5 F accompanied with chills.

And I think a migraine, it’s like throbbing like a little heart beat is in my head. When I blink my head hurts worse and I can’t move that fast cause it hurts.

Cough got worse, it’s those wet coughs not the dry ones. My throat didn’t hurt though.

Im very tried and just want to sleep.

I’m thinking I have a respiratory infection.

If fever rises I will be going to the ER.

I’m going to try everything I can to bring it down though. If you know any tips and tricks feel free to comment them down below