How to unbrick a dead XIAO using ST-LINK and OpenOCD

I can’t say for sure because our PC environment are different, but it sounds like there is a problem with the USB driver.
I suggest you look into the USB driver “Zadig”.