A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi L20,
Thank you for the reply.
So sorry that I don’t have the environment to test for this behavior using the SharePoint Migration Tool.
However, according to this article: Manage large lists and libraries - SharePoint (microsoft.com)
We noticed that the Automatic index creation when sorting in the modern experience is limited to lists and libraries with less than 20,000 items.
As you mentioned you uploaded just over 20k items to SharePoint using the migration tool, it beyond the limit. So, it caused the issue.
For your second question, based on my research, it will not impact the ability of this library to be indexed for searching on SharePoint if your items have been uploaded to SharePoint successfully.
Best Regards,
May