My Mercedes GLC 2019 with 75k at last service my Independent garage advised me that on Merc service guidelines Gearbox filter and oil needs service.
Took it to a Mercedes independent he advised it should be done if I want any future claims due to failed box.
It cost £500 pounds the pan and filter (built in of course) costs 200 and two hours labour at £87 plus fluids !
But a replacement gearbox would be £3k plus fitting.!
I have read of a Porsche 911 scenario which may have the same or similar gearbox (PDK ?) to some Merks where the oil pan has inbuilt filters and a replacement pan is required at oil change intervals. Apparently in the case of one Porsche one or more of the bolts holding the pan sheered off during removal by the main dealership, who then hired in a "specialist to resolve the situation and at extra cost to the customer... Also I think your gearbox replacement cost assessment may be a tad on the low side.... I suspect perhaps more like double digits ...?