from https://github.com/elastic/kibana/issues/167992

the error `_id must be unset or set to [GvMPW29fWPE5Sr2ZAAABivq9G6A] but was [_id] because [.ds-metrics-logstash.monitoring-default-2023.10.04-000001] is in time_series mode`

No `_id` field is sent as part of the request so the error must be internal to the endpoint functionality.

This is preventing the creation of runtime fields against TSDS data views in kibana.

--

Steps to reproduce via kibana - 
1. Install `Kibana Sample Data Logs (TSDB)` sample data
2. run via dev tools console
```
POST /_scripts/painless/_execute
{
  "script": {
    "source": """
      emit(doc['release_date'].value.year < 1972);
    """
  },
  "context": "boolean_field",
  "context_setup": {
    "index": "kibana_sample_data_logstsdb",
    "document": {
      "name": "Dune",
      "author": "Frank Herbert",
      "release_date": "1965-06-01",
      "page_count": 604,
      "@timestamp" : "2023-09-16T20:06:26.264Z",
      "bytes_counter": 79635479,
      "bytes_gauge": 8823,
      "event": {
        "dataset": "sample_web_logs"
       }
    }
  }
}
```
modules/lang-painless/src/main/java/org/elasticsearch/painless/action/PainlessExecuteAction.java
Map<String, ScriptContext<?>> contexts = new HashMap<>();
            contexts.put(PainlessTestScript.CONTEXT.name, PainlessTestScript.CONTEXT);
            contexts.put(FilterScript.CONTEXT.name, FilterScript.CONTEXT);
            contexts.put(ScoreScript.CONTEXT.name, ScoreScript.CONTEXT);
            for (ScriptContext<?> runtimeFieldsContext : ScriptModule.RUNTIME_FIELDS_CONTEXTS) {
                contexts.put(runtimeFieldsContext.name, runtimeFieldsContext);
            }
            return Collections.unmodifiableMap(contexts);
        }
        static final Map<String, ScriptContext<?>> SUPPORTED_CONTEXTS = getSupportedContexts();
        static ScriptContext<?> fromScriptContextName(String name) {
            ScriptContext<?> scriptContext = SUPPORTED_CONTEXTS.get(name);
            if (scriptContext == null) {
                throw new UnsupportedOperationException("unsupported script context name [" + name + "]");
            }
            return scriptContext;
        }
        static class ContextSetup implements Writeable, ToXContentObject {
            private static final ParseField INDEX_FIELD = new ParseField("index");
            private static final ParseField DOCUMENT_FIELD = new ParseField("document");
            private static final ParseField QUERY_FIELD = new ParseField("query");
            private static final ConstructingObjectParser<ContextSetup, Void> PARSER = new ConstructingObjectParser<>(
                "execute_script_context",
                args -> new ContextSetup((String) args[0], (BytesReference) args[1], (QueryBuilder) args[2])
            );
            static {
                PARSER.declareString(ConstructingObjectParser.optionalConstructorArg(), INDEX_FIELD);
                PARSER.declareObject(ConstructingObjectParser.optionalConstructorArg(), (p, c) -> {
                    try (XContentBuilder b = XContentBuilder.builder(p.contentType().xContent())) {
                        b.copyCurrentStructure(p);