The crash seems to come from a user call to a user-provided native DLL function (user's C# code calling user-made C/C++ DLL). Since this is related to a native function, a crash is normal since the Editor can not easily recover from that kind of error, it's not like an error in the C# code.
This is all outside of Unity-controlled code.