Could lack of sleep cause this?

I was OK all day. The past few days, I've gotten like zero sleep. Today, I was eating, drinking soda being fine. I stood up from a chair, went to sit on floor (I lay down when I start feeling faint) I completely passed out. My uncle was trying to wake me up and couldn't. My aunt had to pour three cups or cold water to get me up. I felt so lost as to why my whole family was standing over me asking if I need them to call 911. I was OK after that...

I haven't been getting much rest, I'm going thru a hard break up... Could that cause it?..