Unable to write to destination file

Hi,
arduino-cli Version: 0.9.0 Commit: e4d02b4 on Windows10. Running the following command compile just fine:

arduino-cli compile --fqbn "esp32:esp32:esp32cam" --build-cache-path "C:/ESP32-Cam-GG/compile" --build-path "C:/ESP32-Cam-GG/build" --verbose C:/ESP32-Cam-GG

but if I run again the same exact command line right after, I got the following:

Using board 'esp32cam' from platform in folder: C:\Users\me\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4
Using core 'esp32' from platform in folder: C:\Users\me\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4
Error during build: unable to write to destination file: unable to read contents of the source item: open C:\ESP32-Cam-GG\build\preproc\ctags_target_for_gcc_minus_e.cpp: The system cannot find the path specified.

Running the same for a third time: no errors ...

Update:
the error doesn't recur if I set build-cache-path and build-path folders outside the main sketch folder ...