I have got the same issue , when working with GCP to extract the files and run a schedular In order to get away the error we can use
const credentialsPath = path.join(__dirname, "grand-practice-450211-k3-fd655f6f0a5f.json");
process.env.GOOGLE_APPLICATION_CREDENTIALS = credentialsPath;
This ensures the authentication to the GCP