Cannot augment max_result_window with seemingly unrelated error message

2.3 (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:

I wanted to augment the possible number of results by setting the max_result_window dynamically:

PUT myindex/_settings
{
“index” : {
“max_result_window” : 20000
}
}

I get the error:

{
“error” : {
“root_cause” : [
{
“type” : “illegal_argument_exception”,
“reason” : “failed to build synonyms”
}
],
“type” : “illegal_argument_exception”,
“reason” : “failed to build synonyms”
},
“status” : 400
}

The error message seems unrelated. What do the synonyms have to do with the number of documents I would like to paginate to?