in order to feel valuable. WFH gives you less chance of that, so your mind is starved of its nourishment. Self-confidence sags because it had been propped up by positive feedbacks from others.
Focus on the intrinsic values of what you do. You know it is good and it is helping others.
Have your mind initiate more, less waiting for things to react to. Take responsibility for youself and you own wellbeing, not easy to do since your mind has been conditioned from an early age. But knowing the problem helps.