If cogs 1 to 10 are still good on your XX1 cassette, you can just replace the 42t alloy cog. Wolf Tooth makes the GCX, which comes in 42, 44 and 46t options e.g. https://www.wolftoothcomponents.com/collections/cassette-cogs/products/gcx-44t-cog-for-sram-xx1-x01-cassette
I went a similar route with a 44t replacement cog from OneUp (that now looks to be discontinued) and was happy with it.