"Oh, you are asking me about an actual problem with my unrealistic plans to colonize Mars? I have no idea, but I must say we plan to colonize Mars soon in order to get money from the stupid investors, lmao"
https://twitter.com/marinakoren/status/1461114697713954820
Its solved in so far as adding a large mass to the exterior of the ship can dramatically reduce the hazards of deep space travel. But its still a problem in the sense that getting large amounts of material into space is horribly expensive and difficult.
There was some proposal by the Chinese to build a kilometer long spacecraft, for instance. And if you're willing to invest that much material into a spacecraft, that opens up your options quite a bit.
Woof. A km long? I guess they have cargo ships almost that big that endure far greater pressures and stresses than a spaceship would, but holy shit that's ambitious.