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.
Delay nodes occasionally don't fire the "Completed" output in a nativized build
I am not able to find world outliner how to enable it?
Installer 4.10 failed with error code R-1603
An error occurred while trying to generate project files !?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
UE5.0.2 How to resolve error code (Xcode install) when trying to launch UE5.0.2 after install
Head over to the existing Questions & Answers thread and let us know what's up.