Without seeing the full error and its stack we can only guess, it might be a file access violation or maybe just a null reference error.
You can check the crash folder for more information on the crash, it’s located in the Saved\Crashes
folder. CrashContext.runtime-xml
will have a lot of info in it.
For Development builds that folder is in the game’s folder, for Shipping builds that folder is at C:\Users\{your username}\AppData\Local\{game name}\Saved\Crashes
.
You can also try attaching to your game after launching it with Visual Studio (Debug → Attach To Process…) and then trigger the crash.
Visual Studio will better show you what’s happening when you encounter the crash.