The problem is caused by using the Arduino IDE with files located under the OneDrive folder.
The easiest solution is to not use the Arduino IDE with any files in OneDrive.
In this case it looks like you have your sketchbook located under OneDrive. You can change the location of the sketchbook folder via the Arduino IDE's File > Preferences > Sketchbook Location. Change that setting to any convenient folder on your computer as long as it's not in the OneDrive. The Arduino IDE does not automatically copy the contents of the previous sketchbook folder to the new location so you will need to do this manually.
If you do want to continue using the Arduino IDE with OneDrive, you may be interested to know that the bug has already been fixed in the beta build of the Arduino IDE, which you can download here:
but be aware that version of the Arduino IDE is primarily intended only for beta testing so you may have a higher chance of encountering bugs than you would using the production releases of the IDE.
To see details on the problem, steps that are being taken to fix it, and other possible workarounds that will allow you use the Arduino IDE with OneDrive, see:
Google Translate:
Il problema è causato dall'utilizzo dell'IDE Arduino con i file che si trovano nella cartella OneDrive.
La soluzione più semplice è non utilizzare l'IDE Arduino con alcun file in OneDrive.
In questo caso sembra che il tuo album da disegno si trovi in OneDrive. È possibile modificare la posizione della cartella sketchbook tramite l'IDE di Arduino File > Preferenze > Posizione sketchbook . Cambia quell'impostazione in qualsiasi cartella conveniente sul tuo computer finché non è in OneDrive. L'IDE Arduino non copia automaticamente il contenuto della cartella precedente del quaderno degli schizzi nella nuova posizione, quindi è necessario farlo manualmente.
Se vuoi continuare a utilizzare l'IDE Arduino con OneDrive, potresti essere interessato a sapere che il bug è già stato risolto nella build beta dell'IDE di Arduino, che puoi scaricare qui:
ma sii consapevole che la versione dell'IDE di Arduino è principalmente intesa per il beta testing, quindi potresti avere una maggiore probabilità di incontrare bug rispetto a quella che useresti nelle versioni di produzione dell'IDE.
Per vedere i dettagli sul problema, i passaggi che vengono presi per risolverlo e altri possibili soluzioni che ti permetteranno di usare l'IDE Arduino con OneDrive, vedi: