XIAO Overheating when using usb power and battery power

If this is the case, you need to connect a power management module between the lithium battery and XIAO to prevent the overcharge of the lithium battery from damaging XIAO.