Vasovagal syncope is a condition that leads to fainting in some people. It is also called neurocardiogenic syncope or reflex syncope. It’s the most common cause of fainting. It’s usually not harmful nor a sign of a more serious problem.
https://www.cedars-sinai.org/health-library/diseases-and-conditions/v/vasovagal-syncope.html

