A late defensive collapse sent the Nets into the All-Star break mired in the league’s second-longest losing skid.

Brooklyn led with just over three minutes left Wednesday before failing to make the winning plays it needed down the stretch. The Nets lost 108-103 to Indiana, their seventh loss in a row, before 13,159 at Barclays Center, and have more than a week to stew and seethe.

Only the Knicks, who have dropped eight straight, have a longer current losing streak.

“It’s frustrating. It sucks that we keep putting ourselves into good situations and we keep coming up short,” said Allen Crabbe, who had a team-high 24 points. “We were definitely looking forward to getting this big win going into the All-Star break. Now we’ve got a week before our next game. Hopefully this break gives us some time to get our minds right, attack this second half of the season really well.”

It was the red-hot Crabbe who had given Brooklyn a 95-93 lead on a 3-pointer with 4:09 left. But the Nets proceeded to miss eight straight shots, and play even worse on defense. In the end they allowed an 8-2 run, capped by a layup from Victor Oladipo (game-high 25 points).

“We couldn’t stop them. Defense again was our Achilles heel, 35 points [in the fourth quarter] is just too many,” coach Kenny Atkinson said. “They got too many easy baskets, too many easy looks. There were too many breakdowns. Until we fix up our defense it’s going to be tough to get a W. That’s the way it is.”

For a change, the Nets (19-40) didn’t give this one away early, they waited until late. They got 21 points and 10 rebounds from DeMarre Carroll, and 18 points and nine assists from D’Angelo Russell. But they couldn’t get the stops they needed.

“I just feel like we’re doing just all right — just enough to get by — and not finishing games,” Russell said. “And that comes with playing for all 48 minutes and not just three quarters or whatnot — or forgetting to play in the last four minutes — so making winning plays down the stretch, stuff like that. I think we’ll figure it out sooner or later, realize we’ve got to do it together.

“Just taking up that individual challenge, everybody trying to win that one-on-one battle with your guy and help your teammates at the same time, having that mentality of I’m going to win that battle with my guy.”

The Nets led 60-56 after a Spencer Dinwiddie free throw, but yielded a 15-3 run that included nine straight Pacer points. Ex-Net Thaddeus Young’s dunk left his old team in a 71-63 hole.

The Nets did reel off 13 unanswered to pull ahead by 76-71 on Joe Harris’ 3. They led 79-73 going into the fourth, and 95-93 after a Crabbe 3-pointer.

It didn’t last. Myles Turner (11 points, 14 boards) sandwiched four free throws around a Young dunk off a Brooklyn turnover. Trailing 99-95 with just two minutes remaining, Russell missed a huge 3. Dinwiddie halved the deficit at the line with 1:04 left, but Oladipo scored a layup. And after Quincy Acy missed a 3, Young put the Pacers up by five with 37.8 seconds to play. That essentially ended it.

The Nets have lost 11 of 12, their defense imploding largely coinciding with injuries to Caris LeVert and Rondae Hollis-Jefferson. Both will be reevaluated after the break.

“We have to come back with a bit of a chip on our shoulder. We’re struggling right now. See if we can make some money after the All-Star break, see if we can come back focused. That’s frustrating for all of us. We have to turn it around,” Atkinson said. “Hopefully we get back to whole. Rondae and Caris are two of our best defenders. … They’re really going to help us. But that being said I do think even with the guys we had out there we should’ve done better defensively.”