There is an internal metadata repair tool that also gives additional logging . Please backup the complete “data” and “metadata” folder. Then attach the "metadata folder" to a Support case for Development to fix. It is not possible to cleanup/delete only metadata.
Once the data is cleaned up, then delete the existing metadata directory and replace it with the zipped one provided in the Support case.