The idiom "get a hold of yourself" means to regain control of your emotions and behavior.
Typical contexts:
Examples: "Take a breath and get a hold of yourself." "He was spiraling; I told him to get a hold of himself."
Caution: The phrase can sound dismissive. Offering specific support ("Let's sit down," "Breathe with me") is often more constructive.