Focusing on doing something is like having a goal, which is known to be good for mental health. It's OK if the goal changes from time to time. There's a really great book about how having a goal helped people survive the concentration camps in WW2, called "Man's search for meaning", highly recommended reading. https://en.wikipedia.org/wiki/Man%27s_Search_for_Meaning