Jim if you pray to the God the Father, through Jesus Christ our Lord, for a sound mind, He shall surely grant it, as it is in His will.
I was brought through a very bad 'mental' state a number of years ago, only by the help of God, it was a very dark time indeed, but praise the Lord, only through prayer, I came out the other side of it, into His light.
Try asking for a sound mind Jim from Him.