Mike Madden, 48, was walking through woodland when the grey squirrel spied the nuts on the headwear.
The squirrel landed with such force that Mr Madden was knocked to the ground and injured his neck.
He said: "It felt solid when it hit me but I was lucky really because it could have taken my head off."