=vasovagal syncope, but more specifically in response to stimulus.
Abortive measures, preventive measures, drugs discussed there and at POTS.
Cognitive behavioural therapy makes sense, if the trigger is a situation (eg attending hospital), rather than purely an actual physical stimulus.
See STARS for patient support.