Hello,
Try to regenerate “Regenerate the product attributes lookup table” in Woocommerce > Status > Tools: https://take.ms/LGpvf
In addition, please check Woocommerce > Settings > Product tab > Advanced tab and disable Use the product attributes lookup table for catalog filtering.
If the issue remains Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then Activate the 3rd party plugins one by one and check which plugin is creating the issue for you.
Otherwise, if the issue still exists then keep the 3rd party plugins deactivated and let me know I will check and give you a possible solution.
Best Regards.