Hey. Did you update directly from 0.39 to 0.40.25? Or did you update one by one?
I also had a lot of issues when jumping versions. When I had these issues, I did as follows:
1. Revert back to the working version.
2. Increase version one by one. So go from 0.39 to the very next patch version, then the next, etc.
a. In between the upgrades, it makes sense to check that syncs work again, otherwise you can stop