We've got the same error when we tried to download results generated by our custom GPT. We've then enabled the Code Interpreter & Data Analysis under Capabilities, and it seems to solve the issue.
Code Interpreter & Data Analysis