Throw proper exceptions, with correct marks, when deserialization of a node fails.