Thank you for responding to my comment. Actually XYZ is just the placeholder for my database name because I don’t want to disclose it’s name.
Actually the error is trigger by Buddypress function BP_Groups_Group::get( array $args = array() )
which is located “Buddypress\bp-groups\classes\class-bp-groups-group.php”