M350 cannot be used to set the microstepping of locally-connected external drivers as on the 6XD, yet this is permitted for remotely-connected drivers like the 1XD. Like for locally-connected external drivers it should not be permitted to set anything but the x16 (pseudo-)microstepping.
An exception may be the Mini 5+ 2XD because RepRapFirmware does not determine if a Mini 5+ 2+ or a Mini 5+ 2XD is plugged in, hence it's difficult to apply that limitation. In that case the documentation needs to be updated.