Use the Following sequence to override jquery
Install latest jQuery version 3.4.1.
Update the following sequence of code and try!!!!
wp_deregister_script('jquery');
wp_register_script('jquery',("https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"),
false);
wp_enqueue_script('jquery');
I hope it will help you!!!