I think if you watch it again you’d realize he is meant to be the villain. The scene where he calls tech support and doesn’t want to cancel his wish, just tone it down a little. Followed by him hearing her screaming in pain knowing the girl he’s with does not have the soul of the girl he had a crush on.
Even after that call, he’s trying to salvage this thing. Knowing what he knew, he would live the rest of his life with this thing so long as it toned down the weirdness.
I loved that the movie didn’t bash you over the head with this message, but it’s 100% in there.