I want to Download 2 Million Record from Kibana , Its failing in Reporting

You could try changing a setting described here;

Or depending on what you're going to do with the data, you might want to try the ODBC driver SQL ODBC | Elasticsearch Guide [8.11] | Elastic
It allows you to pull data directly from Elasticsearch into spreadsheets or other apps.

Regards,
Lee