The actor talked about the loss and shared advice for expecting mothers.