Kind of a nasty solution, but if you have a smart plug, you could plug the iPad into it and have HAS toggle power for an hour a day (or whatever time). That way it's as if you unplugged the iPad yourself for a period.

This is exactly what i do with an older iPad. It’s running HASS. The smart switch* is turned off when charge is over 80%, and on when charge drops below 30%. It’s been like this for 4 years. No issues. And I’ve been logging every on/off cycle. Some day I’ll check to see how it’s changed over the years.

How does unplugging the charger for an hour improve the situation? Does it reset the charging logic back into "high charge" mode or something?

Would not even need a smart plug for that, just a simple mechanical timer would do it.

I don't know if it will. I actually have never even heard of this bug before, but I would assume that it gets fixed somehow and I imagine it involves unplugging it and plugging it in again.

I just suggested a smart plug because the original commenter said it was for HomeAssistant, which is really good at scripting stuff like this (if smart plug detects wattage below X, assume ipad is bugged and cut power and return it after n duration, for example). A mechanical timer might also work.

Also, I just bought 11 smart plugs so everything is starting to look like a nail :)