BuddyPress doesn’t have this functionality built-in, there are potential approaches you can explore:
While your attempts at a custom plugin haven’t been successful, it’s still a viable option.
Post your error logs and relevant code snippets on the BuddyPress forum thread you linked. Experienced developers can analyze and identify the issue or Hire a WordPress developer experienced with BuddyPress customizations. They can create a more robust and error-free plugin.
Several plugins might achieve a similar result, though not always with exact feature parity:
Creates exclusive groups where only admins and moderators can post, but members can still access content and chat.