Running any processing program freezes macbook

Specs:
MacBook Pro
MacOS Catalina 10.15.7
8 GB Memory

Any processing program (even a blank program that just makes a window) freezes macbook causing it to run slowly only updating mouse smoothly. (updating all other UIs at about 0.5 fps)

Update: It only freezes for a period of time (~15-30 seconds) while it starts up and fully initializes the program.

It was working yesterday, running every program smoothly. I restarted my computer and it didn’t fix it. I don’t know what the problem could be.

did you change the screen resolution?
what happens if you use P2D?
(instead of doing size(600, 400); do size(600, 400, P2D);)

Running a completely empty project also crashes it.