The Earth’s magnetosphere deflects a great deal of solar and cosmic radiation, which is why ISS astronauts are not exposed to the radiation levels deep space astronauts would be.
And therein lies a potential solution...a spacecraft that generates it’s own magnetosphere...
The earth magnetosphere protects the earth atmosphere from being ripping off by cosmic rays. Any other direct biological benefits it may have are speculative.