Fixing these inconsistencies is always tricky. If you can afford it I suggest to fix it by provisioning a new replica by taking a logical dump/restore with mydumper/myloader.
@stevew those are temporary tables, that should be deleted once the temporary operation is completed, how did you find out about that table?
Do you have any /tmp/#sql remaining file in your filesystem?
If you can share the files that you have in your filesystem like this, would give us a hint on what is causing the issue, maybe an unfinished temporary operation that left an ibd file in tmp
Or probably if the database has been already restarted, the file is gone already
I found them because they block the 8.0 upgrade; they are NOT in the file system. As noted, they almost certainly date back to an earlier 5.x release (5.5, 5.1, maybe even 5.0). Doing an instance dump and reload gets rid of them and unblocks the 8.0 upgrade, but it’s a bit of a hassle.