On a few of my bikes, and Im sure my KTM's did the same.
If you free wheel in neutral towards a robot, the moment you stop, the revs drops a bit. Its as if the motor knows when the wheels are turning or not. It Drops the revs a bit when standing still, but when you start moving and pull the clutch in, the revs will be a bit higher idling, while wheels are turning.
Maybe yours, when you stop, it drops the revs too low and stalls?