Avrdude: ser_open(): can't set com-state for "\\.\COM5" - Possible solution

Thanks for taking the time to share your findings. I'm sorry to hear the driver "roll back" didn't fix the problem.

It would be a good idea to verify that the intended version 3.7.2022.1 of the driver is truly being used now. You can do that by the following procedure:

  1. Connect the Arduino board to your computer with a USB cable.
  2. Open the Windows Device Manager.
  3. Select View > Devices by type from the Device Manager menus.
  4. Open the "View" menu.
  5. If there is a to the left of the "Show hidden devices" menu item, click on "Show hidden devices" to disable it.
  6. Open the "Ports (COM & LPT)" section of the Device Manager tree.
  7. You should see a port identified as "USB-SERIAL CH340 (COMn)" under the "Ports (COM & LPT)" section (where "COMn" is some serial port e.g., COM4). Double click on that item.
    The "USB-SERIAL CH340 (COMn) Properties" dialog will open.
  8. Select the "Drivers" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.

If the "roll back" worked correctly, you should see "3.7.2022.1" in "Driver Version" field in that "USB-SERIAL CH340 (COMn) Properties" dialog.