Stop in for a cup of coffee

The same sort of thing happens after severe migraines. You had an electrical storm in your brain. It will take a few days to recover from it.
Years ago I got electric shocks at work, any chance that could be related