I have a strange problem. My device is Asus Zenfone Max ZC500KL. I have a LineageOS (forgot the version but Android 7 or 8 I think) on it. The battery is drained and at 0%. And as soon as I plug it to the charger, the phone turns on and tries to boot. Of course as soon as it boots, it turns off as the battery is not enough. So I dont know why it tries to boot even when the battery level is not up to a certain safe level. Is it an OS issue? If I install another OS can this be corrected? The battery is healthy.