Normally you can edit the post slug in WordPress, as below:
Sometimes you may find the “Edit” button does exist any more, like below:
In such a case, you can solve the error with the following steps:
- Go to the post list.
- Click the “Quick Edit” button.
- In the popup window, edit the slug.