What i did to kill Erika and not have to fight the doomguards was to cast bladewall on her but not put the target on her. She won't turn hostile if you dont damage her while still in combat mode. Cast blade wall,get out of combat mode, then let here get damaged, save the game just in case she turns hostile and just repeat the process until she's dead.