When in crisis always consult with your doctor first. If you need an adjustment of your medication or even need medication if you have never been threw this before, or need to be hospitalized. this I believe must be done first.
The medication must be right first and always, if you need them, for everything to be better. If you don't believe in doctors or medication for some wild reason, remember Luke the apostle was a doctor.
God and His Holy Spirit can and will help us through these times, but we must believe that He can and will work through doctors and medication. Through my experience have always trusted God and prayed to give me the right doctor and medication in all circumstances.
Now this does not mean that this is a full proof method to follow. the medication must be right first, but there could be among many things that could happen, that the medication could take time and make many adjustments to be right. I am not a doctor but that's why I will direct you to them because they will help you too.
Once the medication is right and you are stable, then you will be able to focus better on God or anything at all. If you need medication, it should be directed by a doctor always.
The doctors must see you in your right mind too, they are the ones that must consider and determine you are stable.
Mental illness is nothing to play around with. Yes I believe you need medication and God for the ultimate treatment as I call it. But you must be careful even with churches out there, with weird beliefs that you don't need medication because, YES God can heal you they say, yes God can heal you but I believe a doctor must determine that always. He must be the one to do whatever with your medication and your mental state to get you well. And God can still do miracles.
The world needs help with the mentally unstable, but they must add Jesus to the equation.