Will previously losing a child for being an, "unfit mother" ruin my chances of getting custody of a new child?
They can use it against you. Use of a lawyer is recommended in your case.
It may be used by the Judge, the weight of the finding depends on the Judge. For example, same child or different child; how long ago, six months vs six years. You need to speak with an attorney in your jurisdiction.