she was not a real person to begin with, and Sunao can just summon her replica, Nao as any time she want.
As for why the personality change is because both Sunao and Sanada think their replica didnt feel pain like they do so they kind of treating them like an object not as a human who can feel...