If a DM wants to ban or house rule something, they're free to do so. What we're talking about is just a weird ruling.
If you were to roll a d10 for Goodberry, the spell would say so. This edition really isn't that obscurely worded.
"Up to 10 berries appear in your hand" is awkwardly worded, I...