When I use Finder, whenever I open or close a folder, even if it just has a single text file inside, my computer completely freezes for 30 seconds to one minute. In addition, whenever I click the green button to unfullscreen a fullscreen application, my computer lags for 5-10 minutes, and does so again if I try to drag the application. The computer also lags for a minute when closing any application.
A possibly related issue is less extreme lag when clicking on any text field, regardless of if its in a chrome browser or part of the OS. Even clicking on the title and body sections when asking this question induced 15 second freezes each. This text lag affects the login screen.
My computer can still run KSP and Minecraft easily, so I don't think its a CPU problem (though my computer lags if I click on a text field in those games).
Additionally, the first tab, be it in Safari or Chrome, that I open after each midnight takes 5-10 minutes to open.
Restarting and resetting NVRAM has no effect.