You can't work around it, that is the limit of this service. To be honest, if your app is regularly going unhealthy for long enough that it is replaced ( an instance is only replaced if it is unhealthy for 1 hour), and this happens multiple times a day, then you need to look at fixing your application as that should not be happening.
Azure App Service - How to work around the number of instance replaced by Health checks

Jess
91
Reputation points
At most one instance will be replaced per hour, with a maximum of three instances per day per App Service Plan.
Ref: https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check
Is it mean that I must restart instances manually if the number of unhealthy instances is over 3?
Q1: Is there some way to work around this limit?
I have tried to work around this by Auto-Heal because they look alike. Q2: What is Auto-Heal for after I turn on Health Check?