This problem is possibly caused by incorrect configuration of opensearch in core_config_data. Try running the following commands in your SQL console:
update core_config_data set value = "opensearch" where path = "catalog/search/opensearch_server_hostname";
update core_config_data set value = "opensearch" where path = "catalog/search/engine";
update core_config_data set value = "9200" where path = "catalog/search/opensearch_server_port";