In general bananas are fine for dogs in small amounts. One concern might be teeth and sugar content, so only small amounts. But any dog can have a reaction to anything, just like humans. I second the idea of a vet checking what might cause stomach distress and keeping a diary. It could be that your little one is actually allergic to their food.