What happens in React is that when you execute 'npm run build' command, it replaces %PUBLIC_URL% with ./ or the homepage(if specified) in package.json field. Changing %PUBLIC_URL% to another path made the browser look for images and other files in the wrong location. Changing it back to %PUBLIC_URL% will not solve the issue as browser will be loading files from its cache.
You need to first clear browser cache by opening DevTools → Right-click Reload button → Choose Empty Cache and Hard Reload
Delete the build/ folder and rebuild -
npm run build