Is this about the itch app?
It's been a while, but the solution would have been to first ensure that the removable drive gets mounted at the same mount point everytime or that a link reliably points to the drive. If you have some id of the drive in the fstab, that should do the trick.
It finds the games in the directories, but then the directories change from the actual ones to something like
If it finds the games after removing and replugging the drive, what exactly was the problem? Those locations might be the temporary mount points that get referenced to by a changing sym link. Or was the app told those temp locations and it failed because of this?