A New Jersey lawyer says Airbnb left him stranded in Manhattan and forced to sleep on a bench — where someone threw a rock at his head, according to a new lawsuit against the home-rental company.

Joseph Rakofsky says on Labor Day weekend he was supposed to stay at a SoHo apartment for 12 days but the host didn’t respond to him on check-in day Sept. 1 after a dispute over a change in his booking that would have increased the cost of the stay by more than $600, according to his Manhattan Supreme Court lawsuit filed Tuesday.

Rakofsky had Airbnb find him a last-minute accommodation through the app, but they wouldn’t cover the difference in cost, the suit claims.

Then Rakofsky said he couldn’t find an affordable hotel room on the busy tourist weekend and wrote to Airbnb “I’m afraid for my safety!” at 6:38 p.m., according to the court papers.

The company said it would pay for half of a hotel room that cost no more than $300, the court documents say.

“Plaintiff explained to Defendant, Airbnb, that, because he was stranded in Manhattan on a National holiday weekend and that because he was deprived of the ability to book the hotel room in advance, the cost of a hotel room would be prohibitively expensive and would certainly cost much more than $300,” the court papers read.

In the end he says he “was forced to sleep on the street, exposed to the harsh elements, noise and violence.”

At 2:30 a.m. Sept. 2, “some unknown person assaulted and battered Plaintiff [Rakofsky] by throwing a rock at Plaintiff’s head, causing him to bleed and fall to the ground, thereby injuring his back and neck,” the court papers allege.

Ratofsky filed a police report over the incident that happened while he was at 393 West Street, cops said.

The report noted that he was “hit by a pebble on his head” while he was sitting on a bench, according to police, who called it a “minor injury” and noted that Ratofsky “refused medical treatment.”

The lawyer told the police he thought the incident was intentional but he wasn’t able to give a description of his alleged assailant, according to police sources.

Rakofsky — an injury and accident lawyer who is repping himself in the suit — is seeking unspecified damages for breach of contract, false advertising, assault and battery and other related claims.

Rakofsky and Airbnb did not immediately return requests for comment.