Help Request: How to maintain focus when emotionally overwhelmed

So my personal life just got very interesting. In a net-positive way, certainly, but still, I am, as Calculon put it, “filled with a large number of powerful emotions!”—some of which are anxious and/​or panicky.

This is making it annoyingly difficult to focus at work. I am an absolutely textbook “Attention Deficit Oh-look-a-squirrel!” case at the best of times, and this seems to have made it much, much worse. I can handle small tasks, but anything where I’m going to have to spend an hour solving multiple problems before producing results, I can hardly make myself start.

Has anyone dealt with the problem of maintaining productive focus while emotionally overwhelmed/​exhausted, and if so, do you have any pointers?