Managing meltdowns

Does anyone know any techniques for managing meltdowns? Like when you feel one coming on is there something you can do to stop it or at least make it less severe and more manageable. I tend to hit myself in the head and break things during mine and I just want a way to manage it so I dont do that