I would discuss it with your vet, as thier views differ. However, certainly spay within the first year.
Anita, who is a member of this forum, would say do before, as she nearly lost her Millie to sudden onset pyometra (she had only hours to act), well before her first birthday. She was very ill for days, evn after the op.
In the days when spaying wasn't routine, as anaesthetics wrren't as safe, I had two springers get pyometra. Cindy was lucky, as even at 10 , she was a toughie, but sally, at 14 , had a heart problem and couldnpoot stand the op.
As many will say, it's better to have a healthy dog operated on , than one who is already sick.
Barbara, Monty, Joly and Teddy.