This is probably a daft question - but if you don;t get off but just scoot it along while sitting on it - but not turning the pedals does the motor still start
and - when you push it do the pedals turn when you are pushing it.
I was just wondering if the freewheel is sticky and when you push it the chain is moving and turning the pedals - hence the bike thinks it is being pedaled
p.s. I could look it up - but is it hub drive?
This might be very close to the motor kicking in while OP is walking , my spoke protector came loose and wedged between the cassette and spokes thus overcoming the freewheel. This in turn spins the front cranks, activating the pedal sensor, telling the motor to go. Took me a while to realise what was happening.
Garry, check the spoke protector is secure and not inhibiting the cassettes ability to freewheel
(Extensively edited to remove extensive spelling mistakes


)