Jesus needed to grieve the loss of his cousin, John the Baptist. So he withdraws to a deserted place by himself.
But then crowds found him & he couldn't take time for himself, so he took time instead to reach out to those who needed him. What better way to deal with grief? Don't withdraw into yourself but reach out to help others.
I knew a man in his 70's who lost his wife. He decided to join the Peace Corps. We all thought he was crazy & tried to discourage him. He was just grieving. But he ended up dying with the people he served & loved...in Guatemala. He knew how to deal with his grief...by reaching out to those in need.