このエラーがでたら
Bootloader Version: 0x00 (0) Checking memory from 0x0 to 0x6FFF... Empty. Chip already blank, to force erase use --force. Checking memory from 0x0 to 0x5AFF... Empty. 0% 100% Programming 0x5B00 bytes... [ X ERROR Memory write error, use debug for more info.
これでエラーなくなった
dfu-programmer atmega32u4 erase --force