This problem with access permissions has become common in latest versions of Mac OS, you need to give permissions to apps (executables) so they can do/use stuff on your disk/computer. Most of the times you will get a prompt for asking/checking this but sometimes this will quietly fail. To solve this you should go to System Preferences -> Security & Privacy -> Privacy -> Full Disk Access -> and ADD your app that is trying to do stuff so there are no more prompts and that there is no quite failures (happens currently in PHPStorm latest versions)
For some visuals, check here with VS Code example
https://github.com/microsoft/vscode/issues/59484#issuecomment-457010011