If that was it, they could just have obtained a signed affidavit from the parents and perhaps their doctors that what is on the birth certificate was a mistake and that they are in the process of resolving it.
And liability from whom, the state government? Other parents? Law doesn't exist in a vacuum, it has to be enforced and in cases like this is enforced in a court, the lawsuit would have to come from some place it is not realistically going to come form. The law might be stupid, but there are no shortage of stupid laws no one gives shit about "liability" because they are not enforced: https://go2tutors.com/14-forgotten-u-s-laws-that-still-technically-exist/