Under advanced options.
1. Select Apply Filter
2. For file extension choose "not equal" and then add file extension (only the extensions needed, if more than once separate them with commas i.e pst,docx,xlsx)
3. Run migration and these file types will be excluded in Azure or CSOM mode.