It usually happens when too many files are inside the folder and you have opened it for the first time. File Explorer usually optimizes and indexes to deliver a smooth performance, but if this keeps happening, restart the PC or wait for it to complete.