At least some of the e-bike makers and their battery manufacturers recommend the battery be removed from the bike when it's not going to be used for some time. One even recommends keeping it were it will be between 32° and 68°F. That 68°F would be an issue for my garage in the summer! But that is only talking about when stored and not in regular use.
https://www.aventon.com/blogs/avento...and%2068%C2%BA.
https://www.radpowerbikes.com/blogs/...for-the-winter
https://www.eriksbikeshop.com/blog/p...ic-bike-winter