Change the search query behaviour searching only in the post/product title. You can add post types to the not allowed list using this code.
By default the unallowed post types are product and shop_webhook.
NOTE: This plugin will always search for products, but the keyword will be compared only with the product title.
Just activate the plugin.