If your XIAO bootloader is broken and you have another unbricked XIAO, the following link may be helpful.