The game crashes when changing the game mode in survival inventory from creative mode to spectator mode and clicking certain slots. This did not happen in 26.3.
How to reproduce:
Create a new creative mode world
Open your inventory and go to the survival inventory
Press F3 + N to change your game mode to spectator mode and click the offhand slot or 7th/8th/9th hotbar slot
The game crashes.
Thank you for helping us improve Minecraft! We saved your files: