Help! "An internal error has occurred. " every time Gemini tries to read and make changes to a file

I am constantly getting this error when Gemini gemini-2.5-pro-preview-05-06 tries to update certain files in my code base. It has basically killed progress on my project and is very frustrating. Does anyone have any ideas how to fix this issue? I’m sorry if this issue has been posted before, but I am not finding any solutions to this.

same An internal error has occurred. Please retry or report in Troubleshooting guide  |  Gemini API  |  Google AI for Developers none stop on a paid service and still getting charged for the reponses that i dont get it getting stupid now been 24 hours with the same error

one workaround i have found is to download the code you are working on and then go to aistudio.google.com, upload the files (you might need to rename them with .txt extension) to a new chat and tell it what you want it to do. aistudio doesn’t have issues reading and updating like firebase does. Then copy and update the code back in firebase.

Its a pretty ugly workaround though. Have you had any further updates on a more permanent fix?