What about using a weight sensor or scale instead of an optical sensor? There would be some variation depending on chip size and material, but I bet it would work. Just change the bag when it hits 20 lbs for example.
I just have a window cut in my 55 gal barrel. Only overfilled it once so far - many that's a pain to clean up.