Max data structure length validation