This may be because of the Heartwormers inside its stomach, better to consult a doctor once, or else you can use Heart Worm Control Food, Which will help the Dog recover by itself.
Hope this Helps.