Would an 5-spd getrag 260/5 bolt up to the M30 enigne, but have a different ratio than the Getrag 260/6 that came in the 535s?

I looked on realoem, but I want to know for sure and what would be the downfall to using the transmission...

Someone who maybe done this before?

Thank you all

-Artem