Nothing happens, just keep playing as you always do.
Your child will be born whether you're at war or sitting in a lord's room.
He/she will be safe somewhere in your realm, whether you have your own kingdom or are part of a major kingdom.
My charactre has had several children and I was always at war or trading, never staying put.