A collection of Invalid Wikidata/Wikipedia links

Tags: #<Tag:0x00007f0eb1250ac8> #<Tag:0x00007f0eb12509b0> #<Tag:0x00007f0eb12508c0> #<Tag:0x00007f0eb12507d0>

I recently downloaded a MusicBrainz database dump again, and one of the checks I ran was for URL relationships referencing nonexistent Wikidata items or Wikipedia article titles (only for the English wikipedia for now, but I could run it for any others).

This turned up roughly 2000 results each. Most of the results are pages or items deleted from Wikipedia for failing to meet notability requirements, but it also includes things like Wikipedia URLs that reference article sections (URLs ending in #something), user or draft pages, and links referencing files.

Here are both lists in TSV format:

What are the options for automated editing based on this data?