Everyone in Asia knows, you cannot store rice for long (over 1-2 months) at room temperature. The rice, ALL RICE has larvae in it. It's a symbiotic relationship. Unlike wheat (bread, pasta) which also cannot be stored at room temperature for long either, 1-2 months is max.
At room Temperature the larvae are in the rice, and will hatch, and become maggots, then they will escape the bag somehow and crawl around as maggots outside and become a cocoon and hatch into mini-moths and die.
The rice is still edible. When you wash it, it's real easy, ALL THE BUGS WILL FLOAT UP, just rinse like 3 times.
Once you cook the rice, it will kill all insects and what ever, will become protein.
You do not need to waste or throw away good rice because of those. You just cannot help it. It will always happen to rice. If you open a bag with no maggots or bugs that means the bag is fresh and a new crop. Otherwise a bag with maggots will mean it's been on the shelf over 1-2 month.
It cannot be helped, all rice has that. All Rice.