there isn't a cap on how many goodberries you can eat, but there is a cap on how many will be effective. While it doesn't say in the rulebooks, most dms choose the cap to be 10. Then they're just normal berries when you consume them.