hi and welcome
all i can say is that a gsd (an probably other breeds) shouldnt excersise an hour before and after feeding.
Im not sure if thats of any help
.....have u contacted a vet about this?
Maybe he is eating something outside which is upsetting his stomach?