AirPods may keep disconnecting due to Bluetooth interference, low battery, outdated software, or a dirty/damaged sensor. Resetting your AirPods, updating your phone, or reconnecting them usually fixes the issue.
Disconnecting of your AirPods might occur because of low battery, feeble Bluetooth signals, an outdated software version, or other system conflicts. What remains to be done is charging the AirPods and placing them near the phone before approaching the Bluetooth settings in the phone to reconnect them.