Lexer: turn some fatal errors into non-fatal ones