Improve error message for LEX_003
Fix inconsistencies in error positions