Energy leaves Palp’s body in RotJ. Clones have existed (with Palp’s knowledge) since AotC. Clone tanks are show in RoS. Palps wants to posses Rey in RoS.
He’s the original spirit in a imperfect clone body. That’s the only read I got from watching the film.