My son wants to hurt me

My son will be 2 in March and in the past few weeks his behaviour seems out of control. When he gets angry he will do anything and everything to me, punch nip slap, pull my hair, head butt, and just this morning we say watching tv and he head butted me. Slapped me etc. At the minuet I give him 1 warning and then I put him on the floor or out off my way. Which doesn’t really do much as he just keeps climbing back up to get me. Any other ideas? I’m going to end up seriously hurt if he carry’s on and im also 6 weeks pregnant so I’m worried once my bump and baby get bigger he will turn on it. Any advice welcome