Handle import name validation error