Cannot upload to XIAO nrf52840, cannot access bootloader mode with reset

Your problem seems to be a phenomenon I have never encountered before. Sorry for not being helpful.
As for re-writing the bootloader, you might find it by searching the forum or the Wiki. Also, a veteran may be able to take over.