Thank for your query Terri.
Transient attacks of this nature are typically caused by either a nerve
reflex from irritation to the vagal nerve, that supplies the heart, stomach and lower oesophagus or from a circulatory problem to the brain, often related to your blood pressure. The association to eating will suggest the former I.e. reflux esophagitis
. As this may cause you to faint, which will cause havoc when driving or from falling, I suggest you see this in a serious light and consult a doctor, to prevent this from happening. Kind regards.