This could be due to transient reduction of blood circulation to the brain called syncope/presyncope
Next Steps
Please consult a neurologist for detailed physical examination.
Health Tips
Don't do any self medication or tests .
Usually, a clinical examination by a neurologist will suffise to diagnose and treat.