What concerns me about your description of the e-bike battery charging is that the amount of time the cable may have been connected to the battery. If connected overnight, the e-bake's battery charging could have been a fire hazard. Please review the following NPR article: What's driving the battery fires with e-bikes and scooters? [https://www.npr.org/2023/03/11/1162732820/e-bike-scooter-lithium-ion-battery-fires]
The following is the safety recommendations from the article: The main recommendation that comes from both the CPSC and the FDNY is to be present while you're charging your device, and to not charge it while you're sleeping. Unplug the device once it is fully charged.