Improve error message for LEX_001
Improve error message for LEX_003
Fix inconsistencies in error positions