The bigger the "community" is, the less it's actually a community. HN is not a community but a social media feed, e.g. like Instagram but with text instead of video. Lobste.rs might be a community, I don't know because I don't have an invite. Most physical hackerspaces (not makerspaces) remain communities even as they get thousands of members.
https://en.wikipedia.org/wiki/1%25_rule
99% of the people are in read-only anyway. The community can be closed for contributions, but open for reading. That might cut bots, ads, propaganda and espionage, but retain the sharing function for those who need without losing much.
But now with AI unfortunately I agree. Not sure if there is a way around closing off communities. Even for communities that openly use AI within.