Leave.
I have 2 kids with my ex husband. I actually asked a therapist when would be the best time to divorce. This was years ago.
Children will pick up on it. They will learn things you may not want them to know. Specifically how he treats you and possibly them.
Leave. Friends, family, support groups, social services and any resource you can find.
I am happy to chat/ email.