I quit coffee for years but eventually went back to it. I had the head aches when quitting. I drink a pot every morning now and sometimes a cup in the afternoon but I make mine a lot weaker than anybody I know. I also quit all soda's for many, many years but now drink one every now and then, usually only several a month, sometimes none in months.
My thing is I have low blood pressure, it has been low all my life and without coffee to get me moving in the mornings and getting it up, I hardly have any energy at all! The last time I had a procedure where I couldn't have anything to eat or drink and had to be put under, my BP bottomed out, dropped so low that it scared the BG's out of everybody.
I would bet it was the aspartame in the diet soda's that had you messed up. There are 90 some side effects of aspartame and while in SMALL amounts I think it is safe but it is not meant to be used in large quantities. I won't use it at all, avoid it at all costs.
I have to admire your doctor for refusing to give you this anxiety meds! Most of them are to quick to give them to people that really don't need them rather than find out what is causing those anxiety attacks and getting rid of them. We need more doctors like yours! I had one try to give them to me and insisted I take them and I was NOT having anxiety attacks or depressed.. I laughed at him and walked out. Never been back to see that one again!
(He never asked me how much coffee I drank or if I drank soda's

)