[BUG] Agent gets stuck in an error loop if an image exceeds 5MB

I encountered this when doing UI/UX work. It tried to check screenshots it took of the browser then was stuck in a constant loop of failing with error 400 due to exceeding 5Mb. Instead of failing gracefully, it just breaks the usability.