The error message "Field items has labels with undefined subfields" indicates that there is a problem with the labels you have created for your custom extraction model. Specifically, it means that you have created a label for a field that has subfields that are not defined. To resolve this error, you need to ensure that all subfields are defined for each field in your labels.
You can check your labels by going to the labeling window and selecting the "Fields" tab. From there, you can expand each field to see its subfields and ensure that they are all defined. Once you have made any necessary updates to your labels, you can try training your model again.
References: