Nicla Vison & Platformio upload

I got the following error doing a Platformio upload
*** [upload] Cannot configure port, something went wrong. Original message: PermissionError(13, ‘A device attached to the system is not functioning.’, None, 31)

Then I have checked device manager and the Nicla Vison Bootloader shows that the
@Internal flash /0x08000000 was not installed
niclaerror

Any idea about what is happening and how to solve it?
Thanks