If she has been violent or coercive controlling, you can apply for a non-molestation order and an occupation order regardless of being married and regardless of whether you are getting divorced or not.
you can apply to court for a non-molestation order to prevent him coming within 100 m of you and an occupation order for him to move out of the house.
Here are the government webpages on exactly this subject. https://www.gov.uk/injunction-domestic-violence
There doesn't actually have to be physical violence per se because there can be coercive behaviour for example as you will read in this excellent article: https://rightsofwomen.org.uk/get-information/violence-against-women-and-international-law/domestic-violence-injunctions/
Although it’s written assuming that it’s the man that is violent, exactly the same applies if it’s a violent woman
If you want the child to stay with you, then you are going to have to apply for a Child arrangement order otherwise she can simply take the child with her.
Here is the link to the Government webpage on Child Arrangement Orders.
There are lots of different Child arrangement orders.
They can include:
A Contact Order which specifies when parent sees a child,
Residence Order to determine who your child lives with,
Prohibited Steps Order to prevent a parent doing something with the child such as moving away
Specific Issue Order to allow a parent to do something specific with the child such as moving away.
Please note that before rushing off to court you have to have tried mediation first, even if it fails