AirPods Pro battery drains when not in use
I have very lightly used my AirPods Pro over the last year or so and this issue has been plaguing me to the point that I just avoid them because I cannot trust they'll work when I need them. I use them with an iPhone X and sometimes a MacBook Pro or iPad Air 4.
I'll use the AirPods for listening to music or a phone call, and then when I put them in the fully-charged case, the battery keeps draining from the AirPods and eventually this completely drains the case battery. This happened yesterday. The case and AirPods were fully charged, I used them for about an hour phone call, put them back in the case, and at 10pm, the AirPods and case were completely dead. Charging them for 15 hours, the case appears to be fully charged, but the AirPods or only at 83%, which makes me wonder if they're still "on" and draining the battery. None of my devices show them as connected.
I'm meticulous about cleaning the case and AirPods before putting them back. Most of the time I look for the blinking light confirmation that it recognizes the AirPods are back in the case. I do have XCode open most of the time on my laptop, so there's a chance that's related. This has happened regularly across the last two firmware versions as well as multiple iOS and MacOS versions on my devices.
This problem does not happen consistently, but it does about every third or fourth use.
Any advice? Thanks
iPhone X