Would you mind sharing your function code here so we can take a look?
I know that people do use firebase-admin in functions. I’m not sure about the offline persistence mentioned in that error though. If Firebase is trying to write to the file system, that will probably not work: