Nano ESP32 has stopped uploading code

I get the following when I try to upload anything to my Nano ESP 32

Assembler messages:
Internal error (Segmentation fault).
Please report this bug.

exit status 1

Compilation error: exit status 1

I tried to reload the bootloader following the instructions here:
https://support.arduino.cc/hc/en-us/articles/9810414060188-Reset-the-Arduino-bootloader-on-the-Nano-ESP32

I get the same error as I do uploading code.
This worked 2 days ago.

I fixed it. I installed the IDE on another PC and it worked so I removed everything arduino from my normal laptop and reinstalled. I tried updating the board in the board manager first since this seemed to point to an error with only that board, but that didn't work. Probably going into my local app data and removing only that folder and installing the board again would have fixed the issue. But regardless, it is fixed now.