And, as always, the law will skew towards appearance of compliance rather than enforcement (GDPR-style), so if this goes through, you'll soon be asked to upload your driver's license to any random website.
With a properly designed protocol you can do this in such a way that (1) the social media site gets no information about you other than that you are old enough, and (2) the site your prove your identity and age to only gets whatever documents you provide and does not learn which social media site the proof is for.
That covers data breaches at the social media sites. They never see the PII for age verification.
The way to deal with the possibility of a breach at the site that does see your documents is to use a site that already have copies of those documents, such as a government agency or maybe a bank.