enbyted, thanks for script!
Faced same issue on Ubuntu 20 04 (quite fresh docker version) only path to pid files little different (/run/containerd/io.containerd.runtime.v2.task/moby/{CONTAINER_ID})
In my case problem is in health check timeout. Please check your container with CONTAINER_ID. Maybe helps for you.
I have report my issue under https://github.com/moby/moby/issues/48908. With reproduce steps.
Let see what developers say.
Again thanks for script! 🚀