Why would you do that?
Failing mails usually have a reason. It happens like 1% of the time that “just something hit the fan and you can reimport without issues”.
Running it automatically will most likely only end in errors being thrown on a regular basis and you still don’t solve the issue.
Implement a proper monitoring solution that monitors Zammads endpoint and “alerts you” if healthy: false
is present.