Return error if hex strings are too long