If they're not getting a good diet, eventually it will catch up with them, especially when they're laying eggs. A few pellets a day, sometimes none at all, is absolutely not enough
It could be stress too. How old are they? What's the temperature like where you are? My hens have stopped laying besides one great bantam and some of my pullets because it's been over 100 most days recently