Maybe you can teach him from a different approach. Instead of hitting him or using a loud voice, tell him slowly. Take his hands away and say, " it is not right to pinch people, would you like somebody to do it to you? "
Let him have timeout whenever there is a meltdown. Let him sit at a corner to calm down. Do not attempt to scold and shame him in public, take him to one side and talk to him if it happens outside.
Most of the time, how children reacts, is what the parents or caregiver are showing them. Children learn what we do, how we react, how we speak. Sometimes, they just needed attention, put some time away and play with the child, make him feel loved so that he knows how to love.
My son used to be this way too. Then I realised, I am not spending enough time with him. I shout at him all the time when he did something wrong. But I have never hit him so he doesn't go around hitting people.
Read more