If you want to do things legally, you will inform the court of the father's severe mental illness, and explain that it might affect his ability to understand or respond to the proceedings. The court can then consider whether it's appropriate to appoint counsel or a guardian ad litem.
Custody is a completely different issue from a name change.

