Enhanced input exit crash

I’m using enhanced input and usersettings to bind, apply, store and reload key bindings. Everything works except when I quit, I get a crash upon ValidateMappingContexts. I tried using ClearAllMappings for my input at controller/gamemode Endplay, at gameinstance Shutdown, but it didn’t help. Also tried to create my own enhanced input component and override its EndPlay, store/clear bindings, but the same crash.
I thought it was first related to the map transition, but it occurs on my menu/first level too.
From the callstack it seems the world is already destroyed when UE calls that method.
Has anyone had a similar issue?

Thanks, Gabor