How interesting , we have tiny wasps here that produce Gauls , they usually are on oak leaves and are commonly called Oak apples. Inside each is a tiny wasp about 3mm long. I winger if yours are something similar ?
Naw - that's just the way squirrels serve cooked peas. Actually, I agree that this is likely some kind of gall insect. Could be some kind of midge species.