This would be a case for a vet. You will want to have your pet checked out if this is happening often. And it would be important for a vet to advise you about what to do when it happens. Each animal is different and the problem cannot be diagnosed without seeing the animal.