I'm so sorry @Mslongears to read of your situation, you must be highly stressed right now. Please do your best to do some calming breathwork, if you don't know how, look it up on YouTube - it's so important right now at this stage of your pregnancy to remain as calm as possible.
First thing in the morning, please register with the council for emergency housing. You are NOT making yourself intentionally homeless, you have a text from your ex telling you to leave, and as it's not your property, the council cannot insist that you remain there (they may try, but I don't feel it's safe for you to do so with your ex's current mindset).
Please also speak with your midwife, she might be able to help with the council finding you something suitable and appropriate.
Have you got anyone for childcare whilst you're in hospital labouring? I personally would not inform him when you're in labour, you really don't need any stress from him, and having him there will hinder your progress. Besides, he has no right to see you at your most vulnerable, the cunt.
I really hope the council come through for you tomorrow. I'd definitely urge you to leave with your child as a matter of urgency, start packing up your stuff. You just don't know when this man will turn even more nasty, I wouldn't risk staying more than another day or two.
What an awful, awful man. Whatever life-changing news he's had, I'm wondering if it's an awful diagnosis or something, but whatever it is, it does not excuse his appalling treatment of you.
Once you're sorted, you'll look back and realise that you never needed him and you'll be just fine on your own. Best of luck to you and your children.