issue with pdf attachment using Endnote + Cryptomator on Mac

I am using EndNote (reference manager) with library+pdf files stored on a Cryptomator drive.
The library works fine, but I could not attach pdf using EndNote.

The pdf file seems to have been created in the folder, but the size of it is zero.

Any idea how to deal with it?

Thanks!