From what I have read Hubble isn't very much impacted by the magnetic field and may even be helped by it:
"Coronal mass ejections from the Sun are not a major risk, as it is in a low enough orbit that the Earth’s magnetic field provides protection."
https://www.spacetelescope.org/about/faq/