Fixing the battery will be possible, and the bike you are looking at has the more reliable version of battery pack.
As for how long it will last, nobody knows yet, none have been worn out. Unless you're asking about range... Then that bike should have an easy 40 mile range for aggressive trail...