Older topic with R4 WIFI renewed?

You need to kill any other USB device connected to your machine except the UNO R4 board before doing Run espflash directly
Check similar issue at Firmware update bricked the Uno R4 WiFi?