The problem you are facing may be due to the corruption of system files. You could use the following troubleshooting methods and check whether they help in solving the issue.
Solution 1: Reset the Windows explorer
: Press Ctrl+Alt+Delete
at the same time and choose to launch Task Manager.
: Find Windows Explorer/Explorer.exe
in the window and right-click on it. Choose End Task.
: After that, navigate to File > Run New Task
, type explorer.exe, and click OK.
Now, restart windows explorer and check whether the error persists.
If the issue still persists try the below solution.
Solution 2: Clean boot your computer
: Press Win + Q
and type in System Configuration
: Navigate to Gerneral
, uncheck Load startup items option under Selective startup.
: Now, turn to Services
tab, select Hide all Microsoft services, and then click on Disable all.
Restart your PC to check if the problem persists or not.
If the problem still persists after you have tried out the two solutions, you could refer to this article to learn other fleshed-out ones:
10 Solutions to Fix Windows Explorer Has Stopped Working Error