Hello, Martijntje,
Thank you for letting us know.
Indeed, it could have been due to the default value of the WooCommerce which sets 20-30 variations for which it runs checks and so on. With the code you added, you increased the default value which helped you as there were many possible combinations >30.
Kind Regards,
8theme team