We have the same problem with Kalles theme. We also consulted with shopify support but they couldn't solve it. They said let's find a shopify expert. We hope someone can find a solution, because it's doesn't seem to be theme error, if it came up in another themes too.
Are you using Kalles 4? If so try this, I edited the code via the solution from this link and it worked for me:
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023
You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...By Skye Nov 8, 2023