Internal error with large csv file using AI studio interface both 1.5pro and flash

Hi,

I have 2 CSV files; one contains around 1800 rows, and another contains 100 rows, totalling around 41k tokens. When I ask a question using the AI studio interface, it will show “An internal error has occurred.” until I reduce the size of the first CSV file to totalling around 8k tokens.

But I can upload these two CSV and ask the same question by using code
response = gemini_model.generate_content([question, file1, file2])

Is this a limitation of this AI studio interface?