BOSTON — At some point, the litany of injuries that have hit the Yankees this season may catch up to them.

So far, that hasn’t happened, as they won again despite losing another key player Sunday.

This time, it was Mike Tauchman who left during a 10-5 victory over the Red Sox at Fenway Park.

One thing that has remained a constant for just about the entire season is Gleyber Torres, who hit the first of three Yankees homers as they won for the fourth time in five games.

Torres hit his 35th homer, had a single, a double and drove in four runs to overshadow another rough outing from Masahiro Tanaka in Boston.

“Gleyber is smart and he’s an instinctive baseball player, too,’’ Aaron Boone said. “He’s gained experience with what pitchers are trying to do. He processes things very well, which is what a lot of great players do.”

Torres is fast becoming just that.

Tanaka, coming off the worst start of his career in his previous outing at Fenway — when he allowed 12 runs in just 3 ¹/₃ innings — gave up four runs in four innings before being replaced by Chad Green.

Tanaka got some quick support from Torres, who gave the Yankees a 2-0 lead with one out in the second when he followed a single by Edwin Encarnacion with a shot over the Green Monster off Rick Porcello.

The Yankees added two runs in the third to make it 4-0, but the Red Sox cut into the lead in the bottom of the inning. Jackie Bradley, Jr. lined an opposite-field two-run homer to left to get Boston to within 4-2.

But the Yankees responded in the fourth with Tauchman’s first home run in nearly a month, a two-run blast with two out that also scored Torres and put the Yankees up, 6-2.

Tauchman exited with two outs in the bottom of the inning when he pulled up before fielding Brock Holt’s single to left. He was replaced by Cameron Maybin, who has been dealing with a left wrist injury.

Tanaka said through an interpreter, “It was a very good win, except for my performance.”

Aaron Judge’s 21st homer of the season that opened the fifth was the Yankees’ 268th of the season, breaking the single-season mark they set last year — which was also an MLB record that has already been snapped by the Twins this year.

“Obviously, home runs are a big part of our offense,’’ Boone said.

Torres, who leads the team in homers, said he wasn’t even aware they had reached a milestone, but called it “amazing.”

“We attack early,’’ Torres said. “When we hit home runs, we’re great.”

Green, whose services as an opener are not needed — for now — tossed three perfect innings in relief of Tanaka. He struck out five and has whiffed 17 in his last five appearances. In those games, the right-hander has also pitched 9 ¹/₃ scoreless innings.

Boone then went to Adam Ottavino, who had only allowed one run in his previous 11 appearances, but immediately gave up a homer to Mookie Betts to lead off the eighth.

After the Yankees pushed two more runs across in the ninth, Jonathan Loaisiga finished it and the Yankees went a season-high 44 games above .500.

And with Torres surging and Judge with five homers in his last 10 games, the offense shows no signs of slowing down — even with the loss of Tauchman hurting an already battered outfield.

“We always have the same energy, no matter what happened the day before,’’ Torres said. “That’s how we stay strong.’’