Unfortunately, the errors log is not available via API. The errors threshold can only be reset by disabling and re-enabling the rule.
My suggestion is to monitor the log. Once errors happen, fix the rule. After that, disable and re-enable the rule to reset the threshold.
I hope this helps.