Blueprint function run in editor

I have a problem of running blueprint function inside Blueprint editor of object (not in game running). Because my external library is not Init Unreal Editor is crash. How i can prevent running my c++ blueprint function inside editor?

UFUNCTION(BlueprintCallable, Category = “My Libraries”)
static boo lxxx_DLL();

When i run editor and click to my BP Asset, Editor is crash because it’s trying call this function. Why unreal editor run my function without running game?