Call back and speak to somebody else. 40 minutes is not a valid connection.
This.
Another issue is that if the check in agent notices the illegal connecting time, you will not be allowed to check luggage or board the first flight. You don't want to deal with this in a foreign country with a baby when space available on alternative flights may be very limited.