Can you feed with you both lying down? Otherwise detach him as soon as he pulls back! Holding his legs may also help, as may giving him something to play with.
good luck...