This error is in the WooCommerce logs after the update.
I am using this plugin https://wordpress.org/plugins/wpc-custom-related-products/
but the error is from the theme because when I am changing the product limit, it is changing in error logs as well.