When worms are active, or dying, I have very vivid dreams and my mind is not operating normally. Not sure if drinking is a factor in this for you, except for the Sugar aspect of it.
I think you have active parasites and until you get rid of them, you will have neurological/cognitive issues.