As others have said, there are a lot of variables that could cause this, mostly in the assist levels you've used, and also in the pedal cadence that you use for any given hill and assist level. That all being said, this is what happens to old batteries, and it's often how they eventually die; they just don't hold enough charge any more. Bosch has a test for this called a capacity test, and so if you could get that done, you would know if it was the battery. I don't know what the levels are that are acceptable for batteries of any given age or number of charge cycles though, so that could be problematic. The capacity tester is an extra piece of equipment, as it has to be able to both discharge and charge batteries, and I don't know if Bosch dealers are required to have it.