I know of two methods to fix this issue. Method 1 is through a mod, and method 2 is through an in-game fix:
"IGE" or "IN GAME EDITOR": Just download the mod from Steam Workshop. Enable the mod, then you should see "IGE" on the "upper-right" part of your screen - click on "IGE" and then wait a little bit. You need to find the city with "buggy production" and then edit your production from your city. This resolves the issue most of the time.
In-game workaround: Go to the city which is bugged, click on the city, then click "purchase", then on lower-left part of your screen, you have the "BACK" option and the "PRODUCE" option, you just need to click on "PRODUCE" and check what your city produces.
I also get this error because I have lot of mods, and several mods don't work together, or some mods don't work properly. If you want to test your mods fully, you must play from ancients time to the future. Then you will know if your mods work without any issues. I hope I helped you guys, these fixes helped me a lot. :)