The health-check was eventually passing and the restart attempt stopped. The issue is that Kubernetes does not report when a health check stops failing and starts passing.
After observing and troubleshooting for a long time I finally realized this when the error counter did not increase after many minutes.