My best advice to you would be to continue to pray. Do you have pastors that you can reach out to soi that they can councel you? Do you have family? The women at my church have been such a wonderful support to me! Don't give up when God is with who can be against you!
You will be ok my friend wemt through a similar situation she got a oart time job amd moved in with her parents and the court awarded her full custody of her son unless your a drug addict or something they will always give custody to the mother just try to stay positive
Try to cheer up. If that's how he feels and he wants to treat you then he's not worth it. Even if you lose him just remember there's a little human growing inside you you that's going to love you unconditionally. And im pretty sure he won't get full custody unless there's evidence that your doing something wrlng