Gnome layout is changed after screen locked

I set my layout in the Gnome Layouts Manager to something that is not Gnome (e.g. “Manjaro” or “Tiling”). Then the screen is locked and most of the times after unlocking the screen, I am back to a mixture of the layout “Gnome” and Manjaro or Tiling, with the behaviour being especially bad with “Tiling” since then I still have the tiling bar on the left but the menu bar is now on the top and noting really works anymore.

This behaviour has occurred ever since the last version upgrade of Gnome to Gnome 40.

After I restart the Gnome WM with Alt+F2 it works again as expected but this is definitely not the desired behaviour.

Does anyone know if there is anything I can do to permanently fix this?