soft question – How professional mathematicians deal with discouragement?

All professional mathematicians feel discouraged occasionally due to some issue.

My question is that

How professional mathematicians deal with discouragement?

In this link , Andrew wile say that I would go out for a walk. I’d often walk down by the lake. Walking has a very good effect in that you’re in this state of relaxation