Crash on compiling custom blueprint node in constructionScript

You may want to take a look at the code for the AActor::AddComponent() function in ActorConstruction.cpp. This is the code function called when any of the AddComponent nodes, such as Add Box Component, are used in the editor which can be called in a blueprint’s construction script with a reference to self.