Visual studio crashes with an exception

I’m beginner to Unreal Engine. I’m part of a research project and I’m trying to learn the engine as I progress but there is something which has got me stuck for quite sometime now.
I get an unhandled exception when I try to call a function. The weird thing is it doesn’t even enter the function - it crashes before that. So I believe it is nothing to do with code inside the function. I’m posting a screenshot of the exception and in the background, there is an arrow pointing to the line causing the exception.

help is greatly appreciated. Thanks!