Hello Udit. Since account preview works but group preview returns nothing, I would start with group retrieval rather than the aggregation itself.
Group Search Scope. On the application Settings, check the Search DN under Group Search Scope and make sure it points to an OU that actually contains groups. If it is left blank, the connector falls back to the Account search scope, which would miss your groups if they sit in a different OU than your accounts. Also check the Iterate Search Filter, since an over-narrow filter returns zero groups with no error. See the Account and Group Settings page.
Schema and task. Confirm the group object type exists on the application Schema tab, and that you are running the Account Group Aggregation task (not Account Aggregation). Group objects only come in through that task plus that schema.
Permissions. Verify the AD service account configured in Domain Settings has read access to the groups in that scope.
As a quick test, try Group Preview pointed at an OU you know contains a group, with the Iterate Search Filter cleared. If that returns the group, the problem is scope or filter. If it still returns nothing, I would check the schema, permissions, and connector logs next.
If it still comes back empty, could you share (masking anything sensitive): the group Search DN and Iterate Search Filter, the group schema/object type config, and the Account Group Aggregation task result with any connector or application log entries? Also, are the users and groups in the same AD domain?