Loosing my job while 4 months pregnant?

I'm pretty stressed to be honest. I have not made it out of my probation period. Even if I find a new job straight away I won't qualify for maternity pay by the time I have the baby. I've never been on any kind of benefits before so Im clueless on what I'd qualify for. Any guidence would be appreciated. If I need to give any more information feel free to ask. In still in shock to be honest.

Edit: just found out I don't qualify for universal credit. I don't know how I'm going to live