Having a baby alone is so daunting, but I can assure you in real life it’s not as scary as you think it will be. I had a good, professional job and was earning well and I knew, I couldn’t continue once my maternity leave was over. I struggled on benefits for a while and then got a part time job in a cafe and now I’m training to be a teacher. She’s only 3 now. So don’t fret
From the sounds of you’re current situation is horrific! And criminal! Coercive. No one can force you into that, against your wishes. I’d try and seek help through the council, contact the helpline here.
And if you feel threatened and fear they will actually imprison you call the police. There is a service if you can’t talk 999 and the press 55, cough or sneeze and a patrol car will be sent. Sounds like you need to get out of there