Unless there was a risk of it being tampered with, which sounds unlikely, and the contents look OK, I would use it, I’ve had bags delivered with only small tears.
I appreciate we want the best for our dogs but considering they eat cow poo, horse poo, cat poo, each other’s poo and Lord knows what else , usually with very little problem, a torn bag of kibble is pretty low on my list of concerns.