ValueError: the environment variable is longer than 32767 characters

I used this simple workaround for now. Small fragments of score transcribes without this error, then I’ve just copy-paste small parts of Lilypond code into one big .ly file.