How to solve: Specified URL key already exists error during add product to category

When editing some of categories or add product to category, Magento throws following error and does not save data: “URL key for specified store already exists”.

We recommend that you use this module: https://github.com/magento/magento2/files/2282697/UrlPathFix.zip