MINOR: Prevent overflow in CreateTopics partition validation (#22722)