In every case that this has happened it has always been caused by something else. You need to figure out what caused it. I would try disabling plugins and switching themes to narrow down the original cause. As I said, something is altering the post slugs. Also, once this has happened there isn’t any way that I know of to correct the field keys other than delete the fields and create new ones.