You may wonder how Palpatine survived to reappear in episode 9 of Star Wars, this is not an official theory, it is part of the official Canon written by JJ Abrams while photocopying the script of Return of the Jedi and changing the title to The Rise of Skywalker