The mushroom fly larvae do the damage. Commercial button mushroom farmers use spray to control them. I would toss the substrate. Burn it, bury it, drown it as far from your grow area as possible. Then clean your grow space. When you think its clean; clean it again. What are you using for substrate? Flies usually originate from improperly prepared substrate.