Owners report occasional issues engaging 1st and reverse and gummy transmissions, and one commenter notes the M5 gearbox is not particularly robust with parts no longer available, though many cars shift smoothly.
Transmission and drivetrain concerns
BMW E28 M5 · drivetrain