Pet food containing peas, beans, lentils, and other legume seeds as the main ingredients, can cause dilated cardiomyopathy in dogs. Legumes are rich in protein and fiber. So, they can act as an indigestible grain. Dogs that have digestive problems should avoid legume seeds in their diet.