Depression affects many functions of the body including sleep.
At age 30,At age 30, stressors of relationships, marriage, parenting, work and finances can cause Depression or Depression with Anxiety.
Depression can cause Hypersomnia.
Depression with Anxiety can cause Insomnia.
Unresolved emotional conflicts cause brooding, difficulty to sleep, or waking in the middle of night.