I wish I knew. The problem is not getting better, it's getting worse, and I am seriously considering abandoning Windows 11 because of it.
For me I slowly accumulate video and photo files as I enjoy photography and videography. Once my SSD gets full I have to sort through all of the video and photos and decide which ones are worth keeping long term, edit the video down to what I really want/need, and then offload everything to a storage drive, of which I now have several, for long term storage.
The photos and videos are all stored in separate folders to keep things from blending together. Every single time I go into a folder, or back out of a folder, windows acts like it has to completely rediscover every file on the entire PC and build thumbnails of them, etc. I need the thumbnails as quick references, so turning off the convenience features etc. isn't really an option for me.
At this point, the only real way to navigate through the file structure is to constantly restart file explorer. That buys you about 30 seconds of normalish performance before it craps out again. I keep task manager up literally all of the time for this specific reason.
Microsoft, you need to fix this ****! It's been ages and you have done nothing. You broke windows explorer, it used to work just fine, just revert to the old code if you need to, or at least offer that as an option.