Improve representation generation error handling.