The most common reason would be acidity caused by too much gap between his meals, make sure you feed once in 6 hours. Also the consistency of food should be kept very soft at this age. Avoid giving milk, some dogs can be lactose intolerant. What food are you giving him?