Anyone else's dog do this

I feed my dog at a certain time and make sure he gets enough to eat(vet recommended a certain amount of cups) well he eats it so fast like in a minute or two, because of this he's been throwing up lately. Anyone else have this problem and what did you do for it