Can you ask to have nobody when you give birth?

Hi I don’t want the father of this child when I give birth he’s a horrible being that is my main source of stress and my goal this pregnancy is to avoid him as much as possible! Anytime he faces me is just a nonstop verbal attack and I’m afraid I’m gonna get so upset and lose the baby!

We’re ofcourse not married so I was wondering if I can ask for him not to be allowed in the hospital at all would that be possible? I just want those few days in peace with my baby!

Ps. I judge myself plenty about why did I allow him to be the father of my child so you can kindly spare me. I’m 17weeks and in a very fragile spot ty:(