If, as you say, your child's father had a history of mental problems of which the prison was aware, and also the prison has had trouble before with prisoner neglect, then you may have a case against them. It would be worthwhile to consult with an attorney, with whom you can share all the details of the situation in confidence.
You and your child have my sympathy.