Ask an Immigration Solicitor. Get an Answer ASAP.
It is unlikely you would be locked up as it appears to have a family and private life in the UK. Before you go ensure you have all copies of documents describing your family and private life in the UK is accessible to your partner just in case there is a need to make an application to prevent removal. I cannot give you any advice on what documents you need. You would have to seek advice from a solicitor outside JustAnswer for that.
What do you mean by fighting for you child? Is your child British?
Are going through the family court?
If you have pending family court matters that should help with your application.
You said you are going through the family court.
ok documents from the family court should be used to support your application