I have the same situation, i open the lid to my tank for a feeding and these tiny flies come flying out, or same with the filter when i do water changes and have to fill it back up, more tiny flies, it drives me crazy, and I want to get rid of them, but yeah pesticides would be bad, so im not sure what to do, i HATE BUGS!