views – Data Export giving error “URI too long”


I am trying to export csv file that rendering with data export view option but when I click on downloads csv link I am getting Error: URI Too Long. I am rendering view in controller and parameter pass in the function directly call in the downloads csv link – https://prnt.sc/upeobl

Below is my code in controller:

public function DataExport() {
$database = Drupal::database();
$arguments_1 = Drupal::request()->query->get('arguments_1');
$arguments_2 = Drupal::request()->query->get('arguments_2');
$arguments_3 = Drupal::request()->query->get('arguments_3');
$arguments_4 = Drupal::request()->query->get('arguments_4');
$arguments_5 = Drupal::request()->query->get('arguments_5');
$arguments_6 = Drupal::request()->query->get('arguments_6');
$arguments_7 = Drupal::request()->query->get('arguments_7');
$arguments_8 = Drupal::request()->query->get('arguments_8');
$newargument = explode("|", $arguments);
$newargument = join("','", $newargument);
$id_arg = "";
if (!empty($arguments_1)) {
  $emp_id_array = $database->query("SELECT DISTINCT id FROM `table`")->fetchAll();
  eid = array_column($emp_id_array , 'id');
  $id_arg  = join(",", $eid );
}
$arguments_4_arg = $arguments_5_arg = $arguments_6_arg = $arguments_7_arg = $arguments_8_arg = 'all';

if ($arguments_4) {
  $arguments_4_arg = explode("|", $arguments_4);
  $arguments_4_arg = join(",", $arguments_4_arg);
}
if ($arguments_5) {
  $arguments_5_arg = explode("|", $arguments_5);
  $arguments_5_arg = join(",", $arguments_5_arg);
}
if (!empty($arguments_6)) {
  $arguments_6_arg = explode("|", $arguments_6);
  $arguments_6_arg = join(",", $arguments_6_arg);
}
if (!empty($arguments_7)) {
  $arguments_7_arg = explode("|", $arguments_7);
  $arguments_7_arg = join(",", $arguments_7_arg);
}
if (!empty($arguments_8)) {
  $emp_hm_county_readiness_arg = explode("|", $arguments_8);
  $arguments_8_arg = join(",", $arguments_8_arg);
}

$selector = '#selector';


$markup = Drupal::service('renderer')->render(views_embed_view('view_name', 'machine_name', $arguments_1, $arguments_2, $arguments_4, $arguments_5, $arguments_6, $arguments_7_arg , $arguments_8_arg ));
$response = new AjaxResponse();
if (!isset($arguments_2)) {
  $response->addCommand(new HtmlCommand($selector, $markup));
}
return $response;

}