If sleeping face up
A baby should be sleeping face up.
If face up, she will be putting very little pressure on her earrings. So, she can keep the earrings in (she has to or else the holes will seal shut), and the parents can just check the ears each day, for any problems. For future babies, parents should realize that they can also wait until a child is much older before piercing the ears.