Just a point, Anakin didn’t want to keep himself alive, he wanted to keep Padmé alive.
I think it is less that Palpatine’s return was meant to come out of nowhere, and more so that it just conveniently worked out that way, at best.
You guys and I feel as though TLJ is the natural progression to the story, that it being about hope feels like it was meant to be that way.