Take small breaks. Even 5 minutes help.
Be interested in the task.
Drink water. Dehydration reduces concentration and will make your situation worse.