I've run into an edge case where a name passed through 9 CNAMEs (and 10 total resolutions to get the final answer). Because MAX_RESTART_COUNT is hardcoded there's no way to tune the configuration to work around this situation.
The original bug report is in the pfSense bug tracker here where detailed traces from drill are available.