I had wild food poisoning and had a similar experience (took me out for weeks, didn’t drink coffee). I assume the body must have some sort of gating mechanism for pain; I have absolutely had caffeine withdrawal before, but not that time. I’ve since cut back and switched to tea, which I believe has helped with my anxiety.
I’m in the same spot after 4-5 weeks of norovirus. Couldn’t touch the stuff. Before, was at probably three to five cups a day. Biggest difference was waking up and feeling awake instead of in need of coffee… but I do miss it, too. Trying to decide what the new steady state is going to be. I’ve been doing one cup a day then switching to decaf while traveling, but that’s harder at home.