>>47067722It's not a headcanon. It's a fact that the Pokemon Center's healing machine isn't all-powerful. It can't do anything about serious injuries, nor can it do anything illnesses or natural things like old age.
If a Pokemon is seriously injured or in danger of dying, they're operated on just like in real life.