I punched their baby
What? Was it an accident? that's terrible!
It was on purpose! That baby threw up on me.
There is no reason to hurt a baby. Babies throw up all the time and it is not necessary to hit them.
The baby needs to learn better.
The baby will learn better as it ages. It cannot control many things now, but you can. You have done wrong and need to apologize.