Microsoft's position on this issue in 2024 is: "we don't give a..."
Just everyday, go to your task manager and crash/restart file explorer. Then go through the inconvenience of reopening manually all the folders you had open before that. ....until it happens again....
Then, we, Microshits, suggest that you go to your task manager again and crash/restart file explorer again, until a couple of hours later it happens again. Then, simply, go again to your task manager; and crash/restart file explorer again.
It's simple!!!!!
It's Microsoft!!!!!!!!