Getting startup crash in Shipping/LinuxNoEditor/4.27.2 ? 4-27

I have created a very minimal .uproject based on 4.27.2-release tag and it works fine on Linux in both the editor and standalone in Development config - however in Shipping config it crashes on startup with the following error message:

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  149 ()
  Minor opcode of failed request:  4
  Resource id in failed request:  0x3e0003b
  Serial number of failed request:  345
  Current serial number in output stream:  355

Looking at the stack trace it says:

#19 0x00007fffe340328b in _XError () from /usr/lib/x86_64-linux-gnu/
--Type <RET> for more, q to quit, c to continue without paging--
#20 0x00007fffe33ffff7 in ?? () from /usr/lib/x86_64-linux-gnu/
#21 0x00007fffe3400095 in ?? () from /usr/lib/x86_64-linux-gnu/
#22 0x00007fffe34009e2 in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/
#23 0x00007fffe34039dd in _XGetRequest () from /usr/lib/x86_64-linux-gnu/
#24 0x00007fffe33f6dc8 in XQueryPointer () from /usr/lib/x86_64-linux-gnu/
#25 0x0000000005c2bbeb in X11_GetGlobalMouseState (x=0x7ffff0b50634, y=0x7ffff0b50638) at /SDL-gui-backend/src/video/x11/SDL_x11mouse.c:403
#26 0x0000000005b6b5c3 in SDL_GetGlobalMouseState_REAL (x=<optimised out>, y=<optimised out>) at /SDL-gui-backend/src/events/SDL_mouse.c:788
#27 0x0000000002d76d0b in FLinuxCursor::GetPosition (this=0x7ffff0b50520) at Runtime/ApplicationCore/Private/Linux/LinuxCursor.cpp:204
#28 0x0000000002e63680 in FSlateUser::GetPointerPosition (this=0x7ffff564a180, PointerIndex=<optimised out>) at Runtime/Slate/Private/Framework/Application/SlateUser.cpp:389
#29 FSlateUser::GetCursorPosition (this=0x7ffff564a180) at Runtime/Slate/Private/Framework/Application/SlateUser.cpp:377
#30 FSlateUser::UpdateTooltip (this=0x7ffff564a180, MenuStack=..., bCanSpawnNewTooltip=false) at Runtime/Slate/Private/Framework/Application/SlateUser.cpp:1147
#31 0x0000000002e59dfd in UE4Function_Private::TFunctionRefBase<UE4Function_Private::FFunctionRefStoragePolicy, void (FSlateUser&)>::operator()(FSlateUser&) const (this=0x7fffffffc208, Params=...)
    at Runtime/Core/Public/Templates/Function.h:676
#32 FSlateApplication::ForEachUser(TFunctionRef<void (FSlateUser&)>, bool) (this=0x7ffff0e08d40, InPredicate=..., bIncludeVirtualUsers=false)
    at Runtime/Slate/Private/Framework/Application/SlateApplication.cpp:3950
#33 FSlateApplication::TickPlatform (this=this@entry=0x7ffff0e08d40, DeltaTime=DeltaTime@entry=812861.312) at Runtime/Slate/Private/Framework/Application/SlateApplication.cpp:1490
#34 0x0000000002e59bfa in FSlateApplication::Tick (this=0x7ffff0e08d40, TickType=ESlateTickType::All) at Runtime/Slate/Private/Framework/Application/SlateApplication.cpp:1429
#35 0x00000000048939a5 in UGameEngine::CreateGameWindow () at Runtime/Engine/Private/GameEngine.cpp:642

I’m not sure if this crash is coming after the reported error (BadDrawable), or if this is actually what is on the stack at the time.

Also, I don’t understand why this would be occuring in Shipping but not in Development. What differences between the configurations could surface such an issue?