The dull, persistent gnawing in his breast started again. He drew up his legs, tossed the papers aside, and shut his eyes.
William is reacting to the anxious loss of his childhood joy in a slightly childish way. He feels a gnawing anxiety at a loss of these comforting childhood feelings and draws up his legs in response.