The centipede is just poorly designed.... They really want you to fight it in a very specific, almost legend of zelda type way and it feels super out of place and dysfunctional on a hitbox and animation level when you try to confront it using similar logic to any other fight.