Proverbs 18:14:

The spirit of a man will sustain his infirmity; but a wounded spirit who can bear?

Notes on Proverbs 18:14:

The man who wants to live and is built up spiritually can survive a sickness that would end the life of someone who is broken on the inside and has lost the will to live.  This is no secret even to secular physicians.  The people who really want to live generally do better than the ones who have given up on the inside.

As pointed out in the Notes on Proverbs 17:22, God wants to heal you emotionally as well as physically.  As a New Covenant believer, you don’t have to worry about having a “wounded spirit” because your spirit is completely whole already, made in God’s image in righteousness and true holiness (Ephesians 4:24).  You may deal with issues, but your born-again spirit isn’t one of them!