Thank you for your question. At the moment, Shii law does not consider mental health as an issue that would annul a marriage contract. However, considering the fact that marriage in the modern world is a major decision for both parties it would be wise to not hide such issues as they will inevitably come up during the course of a persons marriage at which stage your partner may feel hard done by. Especially if it is something you are not entirely over. With these situations it is helpful to put yourself in the other party's shoes and treat others as you would like to be treated yourself.
May you always be successful.