Sounds like you definitely got your money’s worth out of that 48V Calibike battery — 900+ cycles is great! Based on your description (losing power midway), it’s very likely the battery is just worn out. Lithium batteries naturally degrade over time, especially with daily use.
To your question...