Jeffrey Epstein’s former cellmate can’t be moved to another lockup pending trial — despite claims he’s being harassed by jail guards following the financier’s death — because he’s already worn out his welcome at the city’s other federal detention center, Federal prosecutors claimed Wednesday.

Prosecutor Jason Swergold said Wednesday that ex-cop Nicholas Tartaglione was barred from Brooklyn’s Metropolitan Detention Center following a previous, undisclosed “disciplinary infraction.”

Yet defense attorney Bruce Barket denied that his client had ever faced any disciplinary charges during his stay at the MDC.

“We’re not saying put him in the Four Seasons,” Tartaglione lawyer Bruce Barket told White Plains federal court Judge Kenneth Karas. “But he’s in a particularly vulnerable position.”

Wednesday’s comments came in response to a letter Barket filed Tuesday asking his client be moved from his current digs at the Manhattan Correctional Center as he awaits trial for four drug-related homicides.

The legal filing indicated his client was being verbally harassed by guards in the wake of Epstein’s suicide.

The defense attorney added his 51-year-old client had recently been give a letter from a friend that had been “razored” to shreds.

“It just doesn’t seem appropriate he be housed and guarded by the very people who are under investigation, given his proximity to that investigation,” Barket said.

Epstein, 66, was not referred to by name during the court appearance — and only referred to as Tartaglione’s “former cellmate.”

The two briefly bunked together at the MCC, until Epstein was found laying on the floor of their shared cell July 23. They were separated, and Epstein was found unresponsive in his own cell on Aug. 10. His death was later declared a suicide by hanging.

Judge Karas Wednesday instructed prosecutors to speak with the US Marshals Service and try to iron out a housing solution for Tartaglione, saying the “status quo really isn’t acceptable.”

Tartaglione, who faces the death penalty, is back in court on Sept. 17.