I see others also mentioned guided meditation. It helps me, too. I've been using this app called
Calmer for some time now for that. They have various guided meditation sessions designed to calm the mind and body. It helps me redirect my thoughts away from the panic and towards a more relaxed state. I also use their deep breathing exercises to regulate my breathing and reduce the intensity of physical symptoms like a racing heart.