You are being treated appallingly and he damn well knows it, so do the kids. :(
No-one deserves to be screamed at, threatened and physically assaulted then ignored when they have an accident, do they ?
You know it's not acceptable at all, you just need to do something about it now.............
You also have to protect your children from this and to show them that it is NOT acceptable behaviour, otherwise they will grow up to either try to protect you from their father (NOT their job, is it ?) or to treat you the same way because they think it's OK (NOT what you want your DC doing, is it?)
Would he behave like that to his mother ? his boss ? his friends ? NO he would not, so he damn well KNOWS it's not OK, but he does it to you anyway.................
Yes, you must leave him ( or kick him out) as soon as possible. Don't worry about lockdown or where he would stay or any of that. That's HIS damn problem, not yours, and it's fine to leave due to domestic violence, and that's exactly what this is !