How to add auto create feature to custom taxonomy_term field while creating custom entity
I did it using below handler setting

setSetting('handler_settings', ['target_bundles' => ['question_sub_category' => 'question_sub_category'], 'auto_create' => TRUE])