A lexical error can be error which is encountered by lexical analyser at the time of scanning the stream of tokens.
Whereas the syntactical error is related to validity of the tokens (whether the generated tokens are valid keywords or not).
Correct me if I’m wrong ;)