A detailed analysis here: https://mage2.pro/t/129 See also another bug with attribute code length validation: https://github.com/magento/magento2/issues/1978