Suppose a brain cramp is a real thing. Furthermore, suppose that quitting or taking a break isn’t an option when the cramp manifests itself, much like a marathon runner who cramps up in the final meters.
Undoubtedly, the results of that forced endurance will be felt afterward. Likely, the marathon runner will find it (more) difficult to walk. The brain cramp may result in a reduced ability to think straight.
What’s the way out? For muscles, a massage seems fitting. Perhaps applying alternating hot and cold pressure alleviates the pain? If so, what’s the alternative for a brain? How does one massage it?
What helps muscles is moving them in the exact opposite direction. To recover from a figurative brain cramp, does one need to stimulate it in the opposite way of what caused the cramp? Refrain from stimuli altogether?
Given the complexity of the brain, a single, correct answer is unobtainable. Doing nothing can be strenuous.