What remains all the time? Full throttle, or half speed?
Assuming half speed persists. Typically, when going uphill, there is voltage sag that would make the bike act like this. Does your bike have a volt meter in the display? If it’s below 45v, you’ll feel the power diminish. Are you batteries paralleled? Or do you use one at a time?