There could be a medical problem - he could be intolerant of some food, which is causing pain, which is why he's not sleeping and acting like this. Would sound like that to me.

It could also be a lack of consistant boundaries: do the parents reinforce that he cannot hit when it's just them with him?

Good luck, I hope you can stay friends and protect your own child.