Be careful about throwing accusations in court about mh issues. It can backfire spectacularly.
Ex tried to have his solicitor label me as unfit and accuse me of coming off meds. I hadn’t been on meds to begin with but fully explained my mh condition to the court and my liasing with GP/mh services. Didn’t go down well as he had lied to his solicitor (not saying you’re lying) but she ended up with egg on her face.
He was also convicted for breaching an order as he was found to have preyed upon and exploited my known vulnerabilities.
Your ex may well have issues and I do think that sometimes mh is used as a scapegoat for being a dick- but you’d better have the proof, or something to back it up.
That’s just personal experience though.