This is normal, is not hurting the baby and will get better as baby gets bigger and develops these muscles more.
Babies have immature and weak abdominal muscles when they’re born, so doing things that are easy for adults, like passing gas or pooping, require more force and pushing for a baby. This is normal, is not hurting the baby and will get better as baby gets bigger and develops these muscles more.