The woman who was killed was killed by Simon, which represented Frank's hatred for the heroine in his heart.
In the finale part, Simon finally died and Frank was reborn, and the reborn Frank didn't have a strong love or hatred for the heroine (as can be seen from the end of Frank's hesitation about whether to delete the last memory).
PS:
It can be seen from the repeated hypnosis plots that the hypnotist’s technique used many times during hypnosis is to keep the hypnotized person in a bystander state, and substitute what he has done into another virtual character, so that the hypnotized person can be in the hypnotic state. Watching another virtual self go through things that you don't want to go through in the safety of bystanders.
View more about Trance reviews