@pedroso888 you should add the code to the functions.php (I would advise to use a child theme to prevent overwriting when you update your theme next time).
But I agree, there should be a quick way to disable, especially when you use a SEO plugin like Rankmath, Yoast SEO or SmarCrawl.
Thanks! Looking forward to the update.
If you use the Elementor widget products instead of Archive product widget and you turn off pagination it should work. Don’t forget to select current query so that actually only the result of the search is shown.