Throw more syntaxErrors from SymbolDatabase, fixing #5663