Last fall, in the weeks after 21st Century Fox struck settlements with two women who said that Bill O’Reilly had sexually harassed them, the Fox News host went on morning television and offered a harsh assessment of women who had come forward with complaints about the network.

“Look, it’s open season,” he said, visibly irritated, when asked about a recently published book by Megyn Kelly, his colleague at the time. In the book, Ms. Kelly provided an account of being sexually harassed by Roger Ailes, the network’s former chairman. Later Mr. O’Reilly added, “Let’s whack the Fox News Channel. I’ve had enough of it. It’s a good place to work. All right?”

The comments set off a media firestorm and frustrated Ms. Kelly, who sent an email to Fox News executives complaining about his behavior and the chilling effect it could have on women at the company and beyond, according to four people with knowledge of the email who spoke on the condition of anonymity to discuss internal matters.

Despite Ms. Kelly’s complaint, and a plea from a producer that Mr. O’Reilly not be allowed to make similar remarks on his prime-time show, Mr. O’Reilly delivered a second public scolding on the program that night.