You don’t stop loving him. You don’t have control over that, it’s involuntary. But you put him aside because you’re going to be a mum and you need to do what’s right for your baby. This guy sounds like definite trouble - you say he treats you like shit.
He may still be a good dad (I’m not convinced, guys like this don’t usually turn out that way). Be completely clear to him - in writing if you think you can’t say this to his face, or by phone (but if so, make it clear you don’t want to be interrupted till you’ve finished and write yourself a script if it helps!). Something along the lines of:
“This relationship isn’t what I want. I’m not interested in placing any blame, but we aren’t right for each other any more. This isn’t a game, and I’m not trying to change you, but you aren’t what I need, and I’m not what you need. There’s no need for anything to get nasty, and I’m hoping you want a relationship with your child and I’d like to do what I can to support that. I’m not ready to discuss details yet, and we both need time to think, so we won’t talk about it now. But please have a think and I’ll contact you again in two months when we’ve you’ve had time to think about what you want. Please don’t contact me in the meantime as I need a bit of space too.”
Then DON’T speak to him for 2 months. You’ll only be 35 weeks, so in all likelihood you’ll still have some time before baby is born. You do your best to get over this guy in the meantime. My guess is, he’ll move on and be all over other women in the meantime.
Don’t let him bully you over contact. If he asks for something unreasonable, you need to say so e.g. if you choose to breastfeed, he won’t be able to take your child alone for some time. He has to respect that, there will be plenty of time for him to spend with his child once they are older and less dependent on you. Overnight stays will have to wait until your DC is able to sleep independently (and you won’t know in advance when that will be there, is HUGE variation!)
Good luck. Stay strong.