After effects crashing when rendering or saving a file
My ae keeps crashing if I start a new project and try to save it. As soon as it opens file explorer for me to choose where to save it, it crashes with the following messages:


It is also crashing if I try to render a composition and gives me the following messages:


Or this one also comes up

These are the steps I've taken so far to try and resolve the issue but none have worked:
- restarted the pc
- scanned pc for viruses
- removed 3rd party drivers
- uninstalled AE as well as removed folder from program files
- changed render settings to cinema 4d
This is happening in version 24.6.1.
PC info:
Processor 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz 3.11 GHz
Installed RAM 16,0 GB (15,8 GB usable)
System type 64-bit operating system, x64-based processor
Version 22H2
Installed on 2023/02/27
