When I have this problem it is young birds that are not laying that scratch out the bedding from nest boxes, or, older hens that are not laying. A taller lip on the nest boxes might help. I usually end up periodically adding bedding to the boxes.