I had an approx 2 month long psychotic episode (its hard to note when it ended as, at least in my case, it kinda winds down so its not binary). Regarding memory, there's MS, autism, and schizophrenia in my family, and I've become older (the episode is now 10+ years ago). There are certain coffee blends which I really dislike, but I can still drink coffee, though not in the evening (insomnia).
During pregnancy (common), but continuing after birth of our first child (rare?), my wife no longer could handle with coffee with caffeine. She tried, but no it does not work.
I'm skipping on alcohol however, I quit that, it makes me too damn tired. Even one dosage has that effect. I cannot stand it anymore. And its not that I dislike the effect. On the contrary, though I limited usage before. Furthermore, I'm prone to addiction/obsessive behavior, it runs in the family somewhat (as part of hyperfocus of autism, I suspect). Nowadays, I can feel a bonbon with alcohol, or tiramisu with alcohol. I really ought to say no to such, too.
Long story short I cannot summarize all of this but I do have a remaining question: I'm curious how you're dealing with alcohol usage.