When you feel calmer we can find a way to solve this problem. A highly distraught child can benefit from a short cooling-off period. This is not a punishment, nor a deterrent for the behavior. It is simply a time to cool-off. Going to the same place each time helps make the cooling-off period predictable for children.
Many children go to their room.
Looking at books or playing with toys can help some children calm-down. In 2 or 3 minutes the parent goes to the room to see if the child is ready to talk about the situation. Most young children do not need long to cool-down. Sometimes parents also need time to cool-down. Tell your child.