Sounds like the signal from the inhibitor switch/gear position sensor is intermittent. I should retrace your steps from when you replaced the mechatronic sleeve and just double check that all is as it should be with the connector.
Phil

Phil