Solved the issue. It turns out the problem was not in the WooComerce, but in the template. The output code of subcategories and products is registered in the WooComerce folder with the template, and apparently in the new version a conclusion is made differently, which is why such a conflict.
Picture: https://joxi.ru/xAeMOjEfpB6xgA