What do you need to edit and why can’t you edit in the WP editor?
Can you use Search RegEx? It’s a plugin to search and replace with grep and regular expressions through content.
If you need to develop a regex search string to find certain content, check https://stackoverflow.com/questions/tagged/regex