War was indeed safer than childbirth in many cases. Women were always the real warriors of the species, risking their lives to perpetuate it. There's an old speculation that men do insane acts of foolish bravery in an attempt to be equal.
How many wars vs. how many childbirths? These are hard to compare, being so different in nature.
Also, men did a lot of things more dangerous than fighting. Sailors had an extremely high death rate, about three times as much as black coal miners (in Victorian England). I was a bit surprised just how many deaths in Iceland, until quite recently, were caused by fishing boat accidents.
Probably some hyperbole in the quote, but AI claims:
In ancient Greek hoplite battles, winning armies typically lost about 3% to 10% (averaging ~5%) of their men, while defeated armies lost about 10% to 20% (averaging ~14% to 15%).
Dying during childbirth might equal that over a lifetime of 6 childbirths.