Aside from having to make a custom bellhousing/adapter plate, you'll have to shoehorn a S62 in there and all of the M5 braking systems too, at the very least. The S62 will hit where the brake booster is now.
From a fabrication standpoint, it would be much easier to simply use the M5 trans and have a mechanical speedo drive elsewhere along the drivetrain, or have a converter made by a speedo shop. Havig a custom converter seems to be a cheaper option, as I have been quoted around 300$ for that kind of job.
As always, there is the worry about chassis twist with that much torque. The first time you floor it, you could rip the car in twain, unless you reinforce it.