Coccidia can be resistant and need more than one dose (course)
We always start the course with a double dose, then 9 days of regular dose. Do as per your vet's advise.

As for food sensitivity, I think finding a food without corn is the next test.

Most of the food troubles/ vomiting/ stool problems have to do with the ingrediant corn.

Best of luck.