Dear Cark0791
If you have alcohol intake ore sleep deprivation before bath - just never drink and always sleep enough.
Syncope after bath is not rare, even convulsive syncope. It is not dangerous. Drain yourself sitting instead of standing to avoid fainting again.
But if this happen with you more than 1 times without provocations (see above) - you must consult with you doctor. Many reasons my lead to loss of consequence, not epilepsy only.