I had realized at the time. Much of this was stressful times, grad school, job changes, major moves, etc., similar to what you are describing. I wish I'd had some help at the time.
But life has gotten better. Hobbies are exciting again. My joy in the gospel has increased again. I get at least some exercise every day (minimum one mile on my feet).
Hey a few good habits that lift your spirits. But also consider professional help. The least a professional can do is say you don't need help, but they might turn out to change your life.