Can eating a lot of sweet peas cause diarrhea in a child?

Yes. Eating a lot of fruits and veggies (especially if combined with juices) can cause toddler's diarrhea.