Something like that happened to me once and i had to go to a neurologist to get cleared to drive. You really shouldn't be driving a vehicle if you can lose consciousness.
Mine is not a neurologic issue. And it only happens when I stand too long. Sitting doesn't do this to me so I'm perfectly fine to drive.
UC since 2002