The eggs come with the rice, not always but sometimes. Same thing with other grains, whole or milled, even popcorn kernels from time to time. It's not pleasant to look into that big jar of popcorn kernels and seeing what looks like an ant farm of unknown insects.
I started having these tiny black insects, like really small, thin, black jasmin rice grains, with tiny legs. Not tons of them, but some. They had infested my müsly, flour, oats and crisp bread. I threw it all away, immediately went out with the trash bag, scrubbed the cupboards, removed the shelves, scrubbed that, bought and put new stuff in containers or sealed the bags.
Some months later I needed to use some flour and what do I see, tiny small black things crawling around. I pinched the bag and poured out half of the 4lbs it held and sifted the top of what was left, no signs of the bugs, so I used the flour. Seems a bit grody but the flour have been through worse on the way to your cupboard.
A month later the bugs were there again and I really, really needed flour at that exact moment. I was so tired of it, those fucking bugs, eating my shit. Fuck it, I'll show them, so I used the bug flour.
I have never seen a single one since then and that was maybe two years ago. You should eat the rice maggots and see if that makes them go away.