Automatically trim filenames when using SPMT

Not sure if this is the correct place for this question but my problem is this:

I’m trying to migrate files from Google Drive (An account inside a Google Workspace) to a SharePoint site using SPMT (SharePoint Migration Tool) and a lot of files have names too long for SP to handle.

Does anyone know a way to automatically trim the names so they fit into the character limits? It could while they’re still in Drive or during the migration process.

Thanks in advance