Have you tried another model
Give gemini 3.5 lite a whirl i notice you are using 3.8
I had 3.8 guzzel half a million tokens and took 900 seconds thats 15 minutes before I stopped it and no result
I changed to 3.5 lite and exactly the same request took 156 seconds and under 30,000 tokens and had it done
If you care to read my rant