https://www.calmclinic.com/anxiety/s...to-concentrate
“Anxiety is the activation of your fight or flight system, which is meant to keep you safe from harm by ensuring you're running away or fighting without distraction.”
Maybe the new “distraction” is coding work when I’d rather be hitting the heavy bag.