AttributeError in Item Table

ERPNext: v14.68.2

I try to change the length of item_code lower then I got this error below. If the change is higher, the system will accept.

AttributeError: ‘CustomizeForm’ object has no attribute ‘check_length_for_fieldtypes’

Is this a normal behavior, then how to override?

Please open the console log by pressing F12 and examine the error line.

I think the error originates from this file because the validation is set in the mentioned file. Please check it accordingly.

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 95, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 48, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1611, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/handler.py", line 317, in run_doc_method
    response = doc.run_method(method)
  File "apps/frappe/frappe/model/document.py", line 928, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1280, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1262, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 925, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/custom/doctype/customize_form/customize_form.py", line 169, in save_customization
    self.set_property_setters()
  File "apps/frappe/frappe/custom/doctype/customize_form/customize_form.py", line 202, in set_property_setters
    self.set_property_setters_for_docfield(meta, df, meta_df)
  File "apps/frappe/frappe/custom/doctype/customize_form/customize_form.py", line 243, in set_property_setters_for_docfield
    if not self.allow_property_change(prop, meta_df, df):
  File "apps/frappe/frappe/custom/doctype/customize_form/customize_form.py", line 257, in allow_property_change
    self.check_length_for_fieldtypes.append({"df": df, "old_value": meta_df[0].get(prop)})
AttributeError: 'CustomizeForm' object has no attribute 'check_length_for_fieldtypes'

Is there another way to limit the length of value of the field i.e. item_code.