From https://github.com/opensearch-project/ml-commons/issues/2986, user found they can create connector with invalid input like a wrong `pre_process_function`. We should add more validation.