you have to use an AI model with more memory here’s a guide: https://fierylion.itch.io/formamorph/devlog/885513/quick-setup-guide-free-openrouter-setup
For a QUICK fix you can(and should) reduce the Max Output Tokens in the game settings to 256, this makes the game write shorter paragraph, but also give a lot more memory back.