Jellie there were probably red flags that you did not recognize.
Let me ask
1. did you have disagreement before marriage - how did it go - did he give in all the time or did he avoid confrontation or did he always have to win?
2. was he supper sweet and loving all of the time? So much so that you were swept off your feet and got emotionally attaches quickly?
3. how long did you know him before marriage?
4. how was he with his family and friends?
5. how did he treat people who couldn't do anything for him or who was lower in rank and could not say anything back?
6. did you ever see him angry?
7. was he the life of the party and need to be the center of attention?
8. was he very charming and seductive to people?
I don't think people with mental problems are able to conceal their pathology for long. They pick the person they want for a relationship carefully.
The person has to be emotionally healthy, have a strong sense of commitment, and have the desire to be there when needed.
In the early stages, they slowly roll out their bag of tricks. Its incremental so you don't notice it. They may work on your sympathy or shower you with attension, gifts, impressive romance.
Any guy who wants a commitment too quickly, may have a problem. If you pass all their test without running, you have them for life.
Don't let him win. It is difficult for a healthy person to get over a relationship with an emotionally abusive person. It is because you have the capacity to self reflect. You wonder if you did something to cause the pathology and if not how you can help.
You emotional health works against you.
What you do is recognize a person with serious problems before you become emotionally involved. Make sure to know who their friends are, their family, see them in different situations. If they behave badly, let them own it.
Never give more than you get - be somewhat selfish in the beginning till you see if they are worth your like or love. Have expectations and boundaries. Communicate them early. That will weed out a lot of losers.
Start dating now, don't look for a relationship just go out with 10 - 15 men just to get your feet wet and get to know what you want. Do the above and by the time you are ready, you will be good at picking out the losers. Not perfect, but good.
There are lots of books on attachment style. Read one so that you know what style is good for you and how to spot them.