I work alongside a psychotherapist and we often write letters of support for women who are in court for exactly the reason you stated. A judge will rather take opinion from a professional than an ex partner who cries 'she has mental health issues'.
Get all the support you need. By not doing, he is still controlling you.
We all need support at some time and it will always work in your favour recognising that. Good luck.