Address Sanitizer in Visual Studio causes immediate Simulator crash

Hey all! I'm trying to enable the /fsanitize=address flag in Visual Studio Community 2022 on Windows 11. When I enable that flag, I get the following crash in Simulator:


     00007ffc3f656e00()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204a6d6e()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204810a5()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204807e1()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204ac271()    Unknown
     ucrtbased.dll!00007ffa7a2e4299()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204bdc35()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204bdb27()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204bde55()    Unknown
     clang_rt.asan_dbg_dynamic-x86_64.dll!00007ffa204be051()    Unknown
     ntdll.dll!00007ffb3f5d8b7f()    Unknown
     ntdll.dll!00007ffb3f61d51d()    Unknown
     ntdll.dll!00007ffb3f61d2ce()    Unknown
     ntdll.dll!00007ffb3f61d340()    Unknown
     ntdll.dll!00007ffb3f5ddb0d()    Unknown
     ntdll.dll!00007ffb3f5d8e20()    Unknown
     ntdll.dll!00007ffb3f5c90ac()    Unknown
     ntdll.dll!00007ffb3f5da73a()    Unknown
     KernelBase.dll!00007ffb3ca6b5a2()    Unknown
     KernelBase.dll!00007ffb3ca67641()    Unknown
     KernelBase.dll!00007ffb3cac12df()    Unknown
>    PlaydateSimulator.exe!loadCAPIGame(const char * bundleid, const char * path, const char * * outerr) Line 493    C
     PlaydateSimulator.exe!pd_loadPDX(const char * path, const char * name) Line 1198    C
     PlaydateSimulator.exe!MainFrame::LoadPDX(const wxFileName & filedir) Line 1231    C++
     [Inline Frame] PlaydateSimulator.exe!MainFrame::TryCmdLineLoad() Line 1063    C++
     PlaydateSimulator.exe!MainFrame::OnFirstIdle(wxIdleEvent & event) Line 962    C++
     [External Code]    
     PlaydateSimulator.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 164    C++
     [External Code]

Any ideas why this is happening? It runs fine in the simulator and device without this flag enabled. Let me know what other information would be useful.

Line 493 is calling LoadLibraryA() which is loading the game dll in Windows. I'm unsure why this would trigger a violation unless something in the dll is failing.