I can't tell which cause it, but sometimes upower does not notify that adapter is unplugged. A minute after
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep state
It's need a rebuild or some patch, it starting a month ago, but it's not happen every time. My battery reduced its capacity since then, i wonder if that damage can cause it.