Hi, grain can be stored for several years in the right conditions and I'll point to a guide here from Crisp on general storage.
https://crispmalt.com/news/brewing-malt-storage-guide/
There are two main issues with long storage: Spoilage - moisture, rodent droppings, insects, fungi, bacteria, and degradation of the saccharification enzymes which impacts efficiency with mashing.
Correctly stored cool dark and dry - shelf life of whole grains can be several years, crushed grain is though more difficult and risks both forms of degredation faster.
Bacterial degredation is less likely to be an issue, it requires moisture and in most cases bacterial will be reduced during the mashing and boiling process to levels insignificant for brewing. There are some bacteria that are more heat resistant or spore forming and will cause off flavours but these are unlikely in a home brew environment.
Rodents are a significant issue and storage must be rodent proof, and preferably a foot or more off the ground, with spillages cleared quickly.
Fungal spoilage with visible white, pink, or other unexpected colours over the grain/malt suggest moisture has been an issue and would normally mean discarding the batch at home scale, while some fungi will be harmless, others will cause off flavours at best or more harmful affects so I wouldn't use a discoloured batch potentially affected by fungi.
Moisture: You'll also need to consider ventilation for the food bin and condensation - the blue drums can have issues with condensation of warm air if cold overnight.
If the grain batch is older than a year, then consider including some fresh malt in the mash to supplement the saccharification enzymes, I know 'some' isn't exact but at least 5% as a rough guide.
Lastly, the darker the roast the more time the malt can be stored, partly because the moisture level is lower and partly because the thing that the grain is contributing relies less on the enzymes and more on the colour and flavour compounds. So chocolate malt stored dry and airtight is likely to last for ages.
If in doubt, taste some of the grain, or add a spoonful to a cupful of water at 65 deg and taste it after sitting a half hour ...though as above I wouldn't do this for fungal spoilage.