Put the Damn Thing Away
You have reached the point where another five minutes will cost more than it produces. Stop mid-thought if necessary. Close the laptop, put down the tools and move your body into a different room. The unfinished work will survive the night, and you are more likely to return with something useful after a genuine break. Do not spend your rest mentally standing beside the desk. Make the ending physical and obvious. Away means away, not checking from the sofa with one eye.

