E-45 means the battery temperature is too high. Stop using the e-bike, turn the power off and leave it somewhere cool, out of direct sunlight, until the internal temperature has come down. Then turn it back on.
If the code is still there, check that the battery voltage is normal and look at the battery terminals for signs of scorching or melted plastic. A battery that still shows E-45 after that needs replacing.