Compilation button causes editor to crash but compilation works in Visual Studio. Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000019

I just find it weird that this is happening now when everything was working fine before. Not sure what changing the Visual Studio version would affect this. I ran the editor from visual studio and tried to compile from the editor again and I got this exception. I can also provide the log file since I’m not sure what part might explain what is happening.