He theorises it could heal in time, if she continues to follow the light and finally comes to terms with what she did.
He heals her partially, not fully. The council however says it's still there on Dantooine, so she had it on Malachor.
But afterwards however she supposedly went to meditate on Dantooine and healed herself.