Improve error checking for step allocation with min and max node count