An internal error occurred. Failed to generate content / AI Studio

Bug Description
In SOME specific old chats in Google AI Studio, any attempt to generate a response results in:

  • “An internal error occurred”
  • Warning banner: “Failed to generate content, please try again”

The chats are visible (I can scroll history, see all messages), but generation is permanently broken. New chats work normally (even with images uploaded now).

What I’ve noticed

This only seems to affect older chats with some attachments in it (pdf, img, txt e.t.c) — and it doesn’t matter if I deleted those attachments or not. Those chats containing pure text are fine.

What I’ve Already Tried (all unsuccessful)

  • All browsers: Chrome, Safari (desktop + mobile).
  • Devices: laptop, PC, phone.
  • Logout / login, revoke Drive access and re-grant.
  • Switch models (2.5 Pro → Flash → 3.0 and back).
  • Delete images / messages from history.
  • Hard refresh (Ctrl+F5), clear cache/cookies .
  • Scroll to top of history and try again.
  • Wait 15+ hours — no change.

This seems like a backend state corruption after processing images in long conversations — common recurring issue from 2025–2026 threads, but no permanent fix for affected chats.

Please investigate or provide a way to recover/repair these specific chat states. If needed, I can provide chat IDs / screenshots privately.

Thanks for any help or acknowledgment!

Hello, did you find any solutions? I’ve been struggling with this problem since yesterday afternoon and nothing is helping

changing the media resolution and scrolling back a bit in the chat seemed to fix the issue. give it a try.