There was a big dispute over this in what we used to call the Dark Ages, when the Latin of your local parish priest was likely to be rather....indifferent.
Then the conclusion was that the baptism wad efficacious even if the grammar was wrong.
I'm not sure what changed.... but the old ones...