Here is the screeshot of our multi-server environment.

Is there a way for me to do any debug on this script to report which object it is throwing the error on? I've tried it with multiple groups and most throw the error after returning a few results.
Not sure if this helps or not, but I am seeing this in the log:
Which would be at this line:
$ruleGroupDNString = $rule.Group.Get("distinguishedName")
In this case, the report returned seven results before it threw the error.