Dd1 used to do this when she got really upset, now she is older she can talk us through what us wrong and has outgrown it. Try and distract him if you can remove him from the situation, offer a sippy cup of water and hugs. Look for the signs of it happening and hopefully it will stop.