I wonder if you are describing what I have experienced. I have had a spasm in my oesophagus after eating certain foods.
It started years back as an intolerance to wheat in all forms and to some other unidentified foods. This was very obvious as it happened every time I ate wheat, even the smallest amount unwittingly. Very painful and frightening, but the GP I saw was very dismissive and sent me on my way distressed. Fortunately, I can tolerate wheat in moderation now. However, the spasms worsened when eating meat and fish in solid forms, eg., roast, but not as part of a well cooked casserole. I ended up in A and E after not being able to swallow for 5 hours after eating roast chicken. After a 2 hour wait, before seeing a doctor, the symptoms eased and I was able to drink water. The doctor was very reassuring and said this is not an uncommon problem and it was unlikely to be serious. He recommended drinking fizzy drinks, which I find helps to bring up offending foods, painfully, but does give relief much quicker. He also recommended I go back to the GP to get a referral for an endoscopy just to make sure. I did, but again was sent on my way to cope as best as I could on my own. The problem worsened a couple of years ago, so I went back and saw a different doctor, who thought it was a functional problem, but that having a look would be wise. The endoscopy revealed that nothing untoward, only a few polyps. I believe that it is part of IBS.
I have been seeing a Body Stress Release Practitioner for other reasons and mentioned the problems I have had. She has been working on the muscles related to the throat and oesophagus with great success. If I do have a problem, it is an unpleasant lump in the throat sensation only, which can is relieved to some extent by drinking fizzy water. Even this is easing. Unfortunately, there are not many Body Stress Release Practitioners in this country yet. My lovely lady has helped me resolve several health conditions, including a damaged knee, which I had fallen heavily on and would swell up after twisting and walking any distance. The chiropractor made no impression on it after several attempts. One treatment from my lovely lady and no more problems! She specialises in conditions like VA.
Hope this helps. By the way, I am learning to be more assertive and demanding with the medical profession now. Just because they cannot diagnose a health issue doesn't mean it doesn't exist or is all in the mind.