I encountered this error with a private save game variable in c++. I think the randomness comes from the value being garbage collected.
I found a post on stack overflow with the same error and temporarily disabled my antivirus as it suggested and after I did I started getting a normal access violation error.
Then, I discovered from the following post that I needed to mark my variable as a UPROPERTY() to prevent it from being garbage collected