When migrating to Microsoft 365 from a file server, we recommend SPMT, the free SharePoint Migration Tool from Microsoft. If you want to move a significant number of files within your tenant or move tenant-to-tenant, consider Sharegate. Read about all the tools we use