Mavic has different families for their hubs, so 'CrossRide' is not accurate enough to give an answer, as it changes over years and entry level hubs may not be the same as the higher end ones.
If you look at the specifications of your hub and see that it is ID360 or ITS-4: you can just replace the freehub body without having to unmount the rear hub.
https://www.mavic.com/en-gb/freehub-body-oc0675.html
EDIT: I mixed up CrossRide and CrossMax. CrossRide is the entry level range of Mavic and is not compatible with the MicroSpline freehub bodies I mentioned.
So the options are limited: the easiest is the solution mentioned by Weiwen Ng: using a non-shimano 12 speed 11/51 cassette. Otherwise, I'm afraid that the only solution is to build a new wheel. The only rear hub with quick release I'm aware of is the Shimano FH-MT401 (OLD 135mm) or FH-MT401-B (OLD 141mm, but that's unlikely), but it won't work with your current rim: Mavic uses 24 spokes and the Shimano hub is only available for 28/32/36 spokes.