If you have a warranty, get them replaced with better quality batteries. You didn't modify the operating system nor the hardware, so this use case should be covered.
Otherwise, this is a rather unusual problem I've seen involving automation. Most issues I've come across are related to software. 