I haven't observed the anomaly often enough to determine how many/how big/which type/etc. of files are present in /.local/share/gvfs-metadata when things go all wonky - would be nice to suss that one out, tho... IF one had some solid data regarding the above, some coder who's smarter than me could create a little script that does something such as periodically grep (?) the number/size/type/etc. of /.local/share/gvfs-metadata's contents and if above some relevant value... cleans things up (maybe retaining the few, latest and most important bits? Whatever those may be...).
Good stuff, Marv!

Bob