What are professional methods for preventing pantry moths?
Honestly, the top reason is going through stock quickly.
My apprenticeship bakery took delivery 1X week for most grains. Milled daily.

The second strategy was tightly sealed plastic tubs.

Third, deal with infestation in early stages. isolate and destroy.
It was an organic bakery so, yes, occasional uninvited nibblers.