How to fix a stack overflow error on a large document?

Hey @Benjamin_Reck, I’ve updated your post title to a question per our guidelines at How to post in the Questions category (please take a look!).

Can you let us know which platform and editor are you using? For example, if you’re using the web app, can you try compiling your document locally instead, using either the Typst CLI (Releases · typst/typst · GitHub) or the tinymist extension in e.g. VSCode or your favorite editor? Thanks!