Hi Lurch, saw your other post.
If the power is cutting out under power it is probably the battery cells.
Battery should charge to 41.5 - 42v region. Take a measurement after it has fully charged and rested for about an hour.
Use the bike to cut out then measure the voltage again, at this point...