I Was Feeling Better-Then the SPOD

I’m in a cycle like the SPOD (spinning wheel of death) on my Mac. I feel better after class and then when I sit down to do my homework in essentially a math class, I do okay.  Then I sit down to do R or LaTeX and I feel like the spinning wheel of death.  And to add insult to