you are really overstating gnats and tons of gardens have gnats. they're certainly not what killed your plants and only start to kill plants in insane numbers. I'm talking seeing them in physical clumps. they generally only eat dead roots and only get out of control with chronic overwatering or leaving stagnant water around in the room. the biggest common problem with gnats is that the adults fly into buds, get stuck, and die. fungus gnats are comparable to fruit flies and are nowhere near anything like mites, aphids, thrips, etc. they die easily to common pest drenches and simply letting your pots dry way out. you would be hard pressed to find any large gardens that don't have them to some degree or have them at different times regularly. they are so common and not what you're making them out to be. just trying to stop a new person from freaking out from finding a gnat. also, you will have them again at some point. i maintain a lot of rooms but am daily in and out of 6 that house 25 flowering or vegging and i have to do something about gnats annually. im actually testing different things on them now. my go to has been a
spinosad drench but I'm testing a lot lighter of things this time around. if you're in soil letting the top inch or so dry thoroughly is very effective at reducing their numbers and eliminating them over time. my tests are focused around coco because keeping it wetter means they thrive more easily. anyways, nothing personal but gnats are mad common and rarely ever even affect plants noticeably, let alone put a harvest at risk. they do however end up in bud if you don't have a plan for them ahead of time in a decent size grow. if you're a very honest provider, the corpses make the buds unsellable. it's also impossible to get whatever is stuck in there out of the resin. if i ever produce bud with some gnats by accident i smoke the buds myself as i don't think they a big deal personally. would never serve them though regardless of my opinion.