Without wanting to sound like whining, I can hardly say this error message is helpful. No line number or context given as far as I can see. Running lilypond with the verbose option gives nothing further.

Is anybody able to give me even the tiniest clue here? I cannot provide a MWE at this time because I don't know how to isolate this in my large score.