If all else fails, try reading the instructions!!!!
Seriouly though, let's try and re-construct what is happening. You go over a bump, the throttle and pedelec fail. You stop, switch off and back on and everythings OK?
So, exactly what is being moved etc. when you do this? Could it be the...