Yes, you can ask the court to end your marriage in Dubai if the applicable legal conditions are met. Mental illness may support rescission of the marriage contract, but a diagnosis alone does not establish that right.
The route depends on which law applies to your marriage.
Federal Decree-Law No. 41 of 2024 provides for rescission due to illness and divorce for harm. Federal Decree-Law No. 41 of 2022 provides a civil divorce route for non-Muslims within its scope.
Check the applicable law first, including any permitted choice of another law under Article 1 of each law.
Rescission and divorce for harm under the 2024 law
Article 69 of Federal Decree-Law No. 41 of 2024 allows either spouse to ask for rescission (faskh), which ends the marriage contract. It covers an illness or established defect of the kind described in the article, including a harmful condition or one that prevents sexual enjoyment.