See https://phabricator.wikimedia.org/T318547.
This is because of commit fee8297121f0 which remove the edge type. The edge data could be deleted all together if it's not longer useful, or restore the edge type and delete the edge when the file is deleted, or just suppress the exception.