I happened to stumble upon your post during my first visit here. I can relate to your problem. Last year I got laid off after 12 years with the same company. Needless to say, it sent me into a downward spiral of anxiety and depression, all accompanied by chest pains I thought for sure were signs of a heart attack. After cardiac stress tests, an upper GI, endoscopy, chest x-rays, and a whole battery of other tests, it was determined that I was suffering from GERD caused by my anxiety and depression. It was a really frightening time and everything seemed to get better once I addressed my depression with medication and therapy. Now I can eat pretty much what I want, and I usually do. I have eliminated coffee, though.
I hope you're able to get through your difficulty.