M5 has been common to Prusa designs for some time now. It's a much finer pitch, but the nice part is that it's the same diameter as the motor shaft. You can make a coupler with just some tubing and zip ties. Being thinner, it's also less likely to contribute to wobble.