You should be able to find the call stack for the crash in the saved folders, and if you ran in the debugger it should stop on the crash line.
That said, based on your description I’m assuming that you’re calling this in the constructor or something similar. That won’t be a safe place to call from as the class default object (CDO) will never be in a world and gets constructed very early. But even for other instances of the class they won’t know what world they are in until much further in the object life cycle.
I’d look at making the call in BeginPlay as a reasonable option