It is uncommon but possible your dog may have an allergy to carrots. In which case, eating them may cause vomiting, diarrhoea, and itchy skin. If your dog shows any signs of discomfort or illness, do not feed them any more and contact your vet for advice.
More useful articles on a similar topic 👇
Can dogs eat lettuce and mayo?Can carrots give dogs diarrhea?