I don't believe sin is always to blame for mental illness. Chemical imbalance in the brain can also cause mental illness. Relocation to another country/culture can cause depression - mental illness. Postpartum depression is due to hormonal changes in a woman's body. Trauma such as accidents may cause brain damage leading to an altered life style and depression. Never paint a broad subject with the same brush.
* * * * * * * *
Nick Baines, in his blog, writes about Leonard Cohen, "There is a point early in the London gig when he recites the names of many of the drugs he has taken over the years (some for medicinal purposes). Then he says this: ‘I’ve also studied deeply in the philosophies and religions, but cheerfulness kept breaking through"