We tested your case with our sample and encountered a crash when playing in Editor, due to the flag PKG_PlayInEditor not being set. Setting the flag explicitly fixes the crash, but you will have to check whether this will have further impact in your specific case. Here is the snippet that resolved the crash:
GetWorld()->GetOutermost()->PackageFlags |= PKG_PlayInEditor;
Could share what you are trying to achieve? Are you just trying to change the level? If this crash persists it would be best to open a ticket in our support system since we will need a dump from the crash.