External battery gets totally depleted on Xiao BLE sense nRF52840

Thank you for your advice! Can I monitor the battery voltage and set the internal LDO to off?