Sadly, I have some experience here. I have two bikes, both with SRAM Eagle AXS X01 RD. After about 3 years, the mtn bike with this system had a failed derailleur. It would fail intermittently, more and more frequently This was NOT a battery problem. It would just stop working, like described above. Ultimately, I too noticed one of the pins was not making contact. I pulled the derailleur apart and noticed a tiny spring that no longer worked. Note that this voided the warranty but I put it back together. SRAM was completely unresponsive to me personally, so I had to go through the original dealer. They had ZERO luck (3 years old component). SRAM left me having to buy another derailleur. HATE SRAM customer service, as if it exists.
Sadly, I have the next installment. That mtn bike works fine, but here I am on a gravel trip in Europe with an Open Wide, also with the same AXS derailleur. Same irregular failure. Once it said it was the battery. I changed battery several times, and at several points was able to get the SRAM app on my phone to interact with device, telling me battery was charged (both batteries). Again, this is intermittent, unreliable, NOT a battery problem. This time the pins appear to still have function, but it's as if the device doesn't recognize having power. I think I'm headed for a 4 hour drive to a bike shop to buy a new derailleur. So if you are reading this and contemplating buying SRAM AXS, have caution. When the system is working, it's really reliable and great! But I can't believe I have another failure. And rare too, as I don't know anyone else with this problem. Good luck.