My Welsh pony when I'm in his stall doing his stall if he doesn't have hay he gets a little nibbles on me. How can I make him stop?

Give him a sack on the shoulder, but not too hard ofc
After I would hit my horse he would lift his head after doing it again so then I started to smack his shoulder. Hope that works if not I don't know what to tell ya.
I can't hit him because he is head shy
Not trying to sound mean but how I got my horse to stop biting at me was that I would pop him.
Join the fun and sign up to connect with our 200,000 members!