Primordial magnetic field as a common solution of nanohertz gravitational waves and the Hubble tension | Synapse