If your AirPods keep disconnecting, it's doubtful the AirPods themselves are broken, though that's always a possibility. The best course of action is a process of elimination, starting with checking automatic switching. This feature is available on all AirPods Pro and AirPods Max models, plus AirPods 2 or later.
Engadget ยท