A few possibilities: Panic attack; inflamed stomach putting pressure on your diaphragm; allergic reaction to something you're eating; unbalanced electrolytes - when my electrolytes are unbalanced I sometimes have pseudo-panic attacks. Are you getting enough magnesium, potassium, sodium, and calcium?
Your doctor shouldn't blow it off, so I'd investigate further if it persists. It really does sound like a panic attack or a pseudo one. Hot peppers and spicy food in general gives me anxiety immediately after eating them. My ears pop, my chest feels heavy, breathing feels shallow, and I get antsy and I feel foggy. It goes away after a bit, but I have to avoid spicy now. This started happening out of nowhere one day a few years back, by the way. Even the scent of a hot pepper gives me an instantaneous headache. One tiny little red pepper flake creeps into my dish and boom, symptoms ensue.