20 years worth of baptisms invalidated

I believe that God would allow this - they aren’t invalid.
It depends on what they believe

Is the baptism a symbolic ceremony or absolutely necessary for their immortal soul?

And if it's the latter and the church says it's the latter is there any legal recourse for the families of those who had an invalid baptism but passed away before it was discovered?