There is one simple way to avoid moths in pantry dry foods. When you buy flour, breadcrumbs, oats etc put the unopened box in the freezer for 48 hours. The eggs are already in the dry product why you buy, so by freezing you kill the eggs.
No eggs, no moths.
Marg
And you still get a protein fix when you eat them