This popped up again on the front page, and I remembered the answer. I was thinking of The [disappointing and often forgettable] Third Book of Swords by Fred Saberhagen, and specifically the the final battle fought by Sir Andrew, the Kind Knight. Sir Andrew faces off against his followers who have been possessed by the power of the Mindsword, including his lover Dame Yoldi. However, his own magical weapon, Shieldbreaker, will not allow him to stop fighting while there are any other weapons raised against him.
Sir Andrew’s bodyguard, greatly outnumbered by berserk fanatics, were all down now, their’ dead or dying bodies being hacked to pieces by their mad attackers.
But Shieldbreaker protected the man who held it. It continued to make its sound, yet faster now and louder. It worked on, its voice still dull despite its blinding speed, its dazzling arc. It worked efficiently, indifferent as to whom or what it struck, indifferent to whatever screams or words went up from those it disarmed or cut apart, indifferent equally to whatever weapons might be plied against it. Denis saw axeheads, knives, sword-blades, shafts of spears and arrows, flying everywhere, whole and in a hail of fragments. Human limbs and armor danced bloodily within the hail, and surely that bouncing, rolling object had once been a head.
The mouth of the Kind Knight opened and he screamed, surely a louder and more terrible roar than any coming from the folk he struck. Denis, creeping closer still as if he were unable to help himself, saw that Sir Andrew was now covered with blood from head to foot. It was impossible to tell if any of it might be his own. But if he were wounded, still the mad vigor of his movements, energized by magic, continued unabated.
The Knight roared again, in greater agony than before. Denis saw that Dame Yoldi, possessed, a creature of evil hatred, her face hideously transformed, was closing in on Sir Andrew. Her hands were outspread like claws, as if to rend, and she cried out desperate spells of magic. Even Denis the unmagical could feel the backwash of their deadly, immaterial power.
To the Sword of Force the tools of magic were no more than any other weapons. They were dissolved and broken against that gleaming curve almost invisible with speed, that brutal thudding in the air. Dame Yoldi’s hatred propelled her closer, closer, to the man she would destroy, and closer still, until the edge of the bright arc of force touched her, hands first, body an eyeblink later, and wiped her away.
I was also partially conflating this scene with the slightly earlier one where the Dark King Vilkata uses the Mindsword to take control of Sir Andrew's retainers, and Dame Yoldi tries to resist, throwing up several counterspells that the Mindsword's magic brushes aside.