Could you use this to do it?
If it was me I'd probably output all the paths and names to a CSV using the Print Folder tool in Opus, then load that into Excel and have it filter based on the name lenghts.
Seems like a few people have wanted to search based on filename/filepath length now so it might be worth sending a feature request to GPSoftware.