Could be a controller fault or conflict between the throttle and PAS, disconnect the throttle and use PAS only for a while. If no fault occurs you can rule out PAS, do the opposite and see what happens with throttle only and just pretend to pedal.
If individually no issue arises then the fault...