This line (Act 3, Scene 1, Macbeth's soliloquy) translates: "For the sake of the issue (heirs/outcome), I have defiled/filed down my mind."
Macbeth acknowledges that to secure a legacy for children he will never have (the witches promised Banquo's line, not his), he has betrayed his king, his kinsman, and his own conscience. "Filed" suggests a deliberate, grinding erosion—like sharpening a blade until the steel is gone. The result: a mind consumed by guilt, paranoia, and the "scorpions" of doubt. He paid the price ("issue") with his sanity.