1. Recognise you have an emotion. 2. Give yourself some time to observe the emotion without judgement, It is OK to feel that way. 3. Realize you can experience the emotion without having to be reactive to it. The emotion is a given, your reaction is a choice. 4. Get back to work.
Another thing I find helpful is taking some prolonged exhale breaths to help your nervous system get out of its fight/flight response: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6037091/
Very few actually walk alone to empty their minds. Most listen to podcasts. Chat on the phone. Walk the dog. Or with a stroller. And yet I have found it to be the surest remedy!