Can't upload to nano esp32

follwowed the instructions : Sketch uses 784457 bytes (24%) of program storage space. Maximum is 3145728 bytes.
Global variables use 60244 bytes (18%) of dynamic memory, leaving 267436 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM12
Connecting...

A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed programming: uploading error: exit status 1

initial errowa was:

Sketch uses 784441 bytes (24%) of program storage space. Maximum is 3145728 bytes.
Global variables use 60244 bytes (18%) of dynamic memory, leaving 267436 bytes for local variables. Maximum is 327680 bytes.
dfu-util 0.11-arduino4

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Cannot open DFU device 2341:0070 found on devnum 60 (LIBUSB_ERROR_NOT_FOUND)
No DFU capable USB device available
Failed uploading: uploading error: exit status 74