pub fn validate_collection_count( count: u32, label: &str, ) -> Result<(), FormatError>
Validates that a deserialized collection count is within bounds. Returns InvalidData if the count exceeds MAX_COLLECTION_COUNT.
InvalidData
MAX_COLLECTION_COUNT