You can just join another instance that is outside the jurisdiction of these laws or run your own instance with closed sign ups since you don’t have to verify your own age (or the age of known friends if you offer access to them)
The fediverse is inherently resilient to this sort of law, it’s the laws that make platforms liable for the content posted to it, that are more of a concern for the fediverse.