If not canning then you should really vacuum pack the grains to keep the bugs from it.
I've stored grains for years at a time in buckets with tight lids and plenty of O2 absorbers... never had an issue with bugs... plus, could just think of it as free protein