Sometimes, you got to take a break!
I was doing tactics problem this afternoon, and I was having a lot of fun, and I was quite happy with my performance, but after about an hour, I started moving before I even considered the consequences of my moves and I got frustrated that I missed some easy puzzles.
Gotta learn to take a break sometimes! I recommend doing a light workout at home. Should replace your thoughts right up.