A few things can cause that, anxiety can cause you to breath very rapidly and hyperventalate also it can cause you to breath too shalowly and not get enough oxygen. You should see a psychiatric professional about this.
Try to change the things that make you depress. Make an appointment with a doctor and check your blood pressure, and the sugar level on your blood. Those things make you feel dizzy. Take care of yourself.
Maybe it just happened at random,if it keeps happening you might need some help with it but I live.
I do know this if you pass out and are taken to the hospital your divers license can be revoked for a time period.Probably a lot of things caused you to pass out.
What did the paramedics say?
it absolutely can - and it did.