Some 10 speed cassettes (can’t remember which off the top of my head, but not many of them) require a thin spacer to work on a standard shimano hub. There is an extra thick spacer to make an 11 speed freehub compatible with 8-9-10 cassettes. Some combinations require both spacers.
Mavic freehubs happen to be almost exactly the same length as a shimano 11 speed freehub, so they require a thick spacer to be 8-9-10 compatible or no spacer for 11.
All the spacers are included with either the cassette (the thin 10 speed one) or the hub (the thick 11 to 8-9-10 speed one).
If you can’t get it tight with one or other combinations of spacers, either the cassette is broken, the spacer is interfering with your rivets or you’ve not done it up properly (top sprocket out of position? Lock ring touching the freehub bearing?) And it’s a pretty simple system, incredibly easy to diagnose wobbly sprockets, and either fix or replace.
What hubs are they?