The Knicks boast a distinct size advantage in their first-round playoff series, but that didn’t deter the Atlanta Hawks enough in Game 2.

The Hawks scored 42 points in the paint in the second half alone, fueling a series-tying 107-106 win at Madison Square Garden on Monday night.

Those are the most paint points the Knicks have allowed in a half all season, according to head coach Mike Brown, who stressed the need to improve in that area going into Thursday night’s Game 3 in Atlanta.

“We did not execute our defense, and you can see it on film,” Brown said after Wednesday’s practice.

Both of the Knicks’ top centers, 7-footers Karl-Anthony Towns and Mitchell Robinson, tower over Atlanta’s tallest starter, the 6-10 Onyeka Okongwu. The Hawks are without their No. 2 big man, 6-11 Jock Landale, who is sitting with a high ankle sprain.

But run-and-gun Atlanta repeatedly got good looks near the basket Monday, both on drives and in transition.

Jalen Johnson made six baskets in the paint in the second half. Four came on drives, and another came on a tip-in, before Johnson finished his night with a timely fastbreak dunk in the waning seconds.

CJ McCollum scored two such baskets in the game’s final 2:08, the first on a driving lay-up and the second on a floater.

That’s after the Hawks totaled 42 paint points in their 113-102 loss in Game 1 on Saturday night, and after they scored 16 points in the paint in Monday’s first half.

“We didn’t have that physicality that we did in Game 1 and in the first half [of Game 2]. I think that was the biggest thing,” Knicks guard Josh Hart said Wednesday.

“When you lose that physicality, then you allow them to move at their own pace and dictate their offense instead of you dictating it. We’ve just got to make sure we’re physical, have attention to detail and are focused for a full 48 [minutes].”

Hart said he can imagine the Hawks attempting to pound the paint again to begin Game 3 but that the Knicks will be ready to adjust to anything.

“If they start the game how they ended it, we’re focused on that,” Hart said. “If not, we’re focused on what the next piece is, and the next piece. If we focus on ourselves, we’ll be in the game at the end.”

LINEUP DECISIONS

In Game 2, the Knicks were outscored by five points early in the second quarter and three points early in the fourth during the minutes in which Jalen Brunson and Towns were both out of the game.

For much of the season, Brown staggered the playing time of his All-Stars, ensuring at least one of them was on the court at all times. But down the stretch, the Knicks began sitting Brunson and Towns simultaneously in order to optimize their minutes together.

Asked Wednesday if he remained confident using lineups with neither Brunson nor Towns, Brown said, “Anything’s open to discussion.”

“I’m comfortable with all of our guys playing, no matter who the five [players are] out there,” Brown said. “But at the end of the day – just like offensively, defensively, we changed both of those things during the year – anything can happen. When you’re in the playoffs, everything should be on the table.”

BOUNCE BACK

The Knicks led by 12 points to begin Monday night’s fourth quarter and by as many as 14 points in the second half, only to stagnate down the stretch as the Hawks rallied to victory.

Brown and his players remain confident they can bounce back in Game 3.

“You always want to get better in a win, but sometimes you need a loss to dive in on the things that you’re not doing well,” forward Mikal Bridges said Wednesday. “That’s a good team, too, so it’s not like it’s going to be easy. You’ve just got to learn from it and bring that fire in the next game.”

Brown shared a similar sentiment, saying, “Any time you struggle, especially if you’re a resilient group, it can be a good thing. And our group is resilient.”

“I don’t know if there are many teams that have gone 16-0 on their run [to a championship],” Brown said, “so you’ve to figure out how to win on the road if you expect to be who you are anyway.”