Find the cause
Passing out or syncope
is an abnormal event and requires a complete work up by an md.
It is sometimesba neurologic or cardiac problem but there are other potential causes.
It is unsafe to continue without a medical evaluation. Your body is telling you that something is wrong so dont ignore it. You are jeopardizing your health/safety and the safety of others if you are driving.