This is in general not encouraged, but should not crash.
The reason it's crashing is that in UBehaviorTreeComponent::Tick we process node ticks first and then try to access InstanceStack[ActiveInstanceIdx], but if any of node-related code results in calling StopTree the InstanceStack gets cleared and accessing the array simply crashes.
Head over to the existing Questions & Answers thread and let us know what's up.