Finder freezes
Out of nowhere, Finder started freezing. I cannot open any folder, whether that be through a desktop icon, right-click to the the Finder icon on the dock, CMD+SHIFT+G, or via command-line to open Finder (though I can access files in the shell). Finder also freezes when I right click on the desktop, and icon, or attempt to view anything but the Finder menu in the menu bar (such as File).
If I don't try to use Finder for a bit, I can open some folders. But as soon as I go to Recents (which is blank), problems start up again.
What I have tried:
* Starting in Safe Mode. Finder works, but not after a reboot into normal boot.
* Ran OnyX maintainance.
* Used CleanMyMac to clear various caches.
* Manually cleared CloudKit metadata (`rm ~/Library/Caches/CloudKit/CloudKitMetadata*; killall cloudd`).
* `rm ~/Library/Preferences/com.apple.finder.plist`.
* `rm ~/Library/Preferences/com.apple.systemuiserver.plist`.
* `rm ~/Library/Preferences/com.apple.loginwindow.plist`.
* As a desperate attempt, `sudo rm -rf ~/Library/Caches`.
I have had a similar problem that I believe was caused by Xcode before, but I cannot delete it because I cannot open the Applications folder.
EtreCheck: https://pastes.io/fw0kp6vgic
MacBook Pro (M1, 2020)