Most of us have smoked weed with bugs in it. Heck, there are even govt regulations on how many rat hairs, bugs and other contaminants are allowed in our food. Same thing for dispensary buds. My suggestion about washing the plants after harvest was merely an option. Any bud grown outside has contaminants on it. Unless you have a high end filtration system and wear a space suit when tending your crop, anything you grow will have contaminants in it. Even washing it won’t completely clean it. I wouldn’t worry too much about it. It sounds like fungus gnats to me. Probably came into your grow with the soil you have. Maybe try a different soil next grow. That is a crap shoot too. Soil varies from batch to batch. All you can do is try to minimize contaminants.