Hi Tyro,
People who might be able to help you will need a lot more information than you have given.. Is it a factory e-bike or aftermarket kit, motor type, does it cut out while using throttle or while pedaling (or both), does the system use torque sensing or cadence sensing for the pedal...