One could argue the Espionage Act created this power but this court will definitely decide as you say. Even when Thomas and Alito are replaced by Justices Cannon and Lindell.
Considering Trump's appointees haven't been as loyal as Thomas and Alito, I can only see him nominating absolute simps. He's going to need the pre-emptive self-pardon to hold up after all.