Hello richmondsim,
Let's start by using the steps below to reset your AirPods:
1. Put your AirPods in their charging case, and close the lid.
2. Wait 30 seconds.
3. Open the lid of your charging case, and put your AirPods in your ears.
4. Go to Settings > Bluetooth. Or go to Settings > [your AirPods].
• If your AirPods appear there as connected, tap the More Info button
next to your AirPods, tap Forget This Device, then tap again to confirm.
• If your AirPods don't appear there, continue to the next step.
5. Put your AirPods in their charging case, and keep the lid open.
6. Press and hold the setup button on the back of the case for about 15 seconds, until the status light on the front of the case flashes amber, then white.*

7. Reconnect your AirPods: With your AirPods in their charging case and the lid open, place your AirPods close to your iPhone or iPad. Follow the steps on your device's screen.
You can also find those steps in this resource: How to reset your AirPods and AirPods Pro - Apple Support A reset can help address unexpected behaviors.
You'll also want to clean your AirPods and case per the recommendations in this resource: Cleaning AirPods, AirPods Pro, AirPods Max, and EarPods - Apple Support
Should that behavior still persist, you'll want to reach out to Apple Support: Apple Support They'll be in the best position to look into this further.
Take care.