Per Index API | Elasticsearch Guide [8.11] | Elastic;
Automatic index creation is controlled by the
action.auto_create_indexsetting. This setting defaults totrue, which allows any index to be created automatically. You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns, or set it tofalseto disable automatic index creation entirely. Specify a comma-separated list of patterns you want to allow, or prefix each pattern with+or-to indicate whether it should be allowed or blocked. When a list is specified, the default behaviour is to disallow.
If you set that to false and saw errors, it'd be helpful if you posted your config and the log.