if it REALLY isn't a new, independent problem
it sounds like the wire harness on the transmission got pulled too hard. i don't own an m30, but anything that causes a trans program (that isn't internal to the tranny) seems to involve the MAF, TPS, ICV, or an air leak code being thrown on my m50. but bmw made a tsb about it on that car, don't really know about your vehicle.