why use get project files api ,if set branch_data: true, the response will be error
This definitely seems like a bug, so reach out to Figma support team via the bug report form.