I am consistently encountering
“An internal error has occurred. Please retry or report in Troubleshooting guide | Gemini API | Google AI for Developers”
when gemini-2.5-pro-preview-05-06 in Firebase Studio is trying to read any file over about 5000 tokens.
The interesting thing is if i go over to aistudio.google.com it has no problem reading and updating the same files. Perhaps there is some hidden token limit in Firebase that is preventing the models from working with larger inputs?