A short version which suffices: is it possible to set up a keybinding to change the keybindings?
Mod-5 would choose between the desktops for project A. Then Mod-F2 would change to project B, and Mod-1 through Mod-5 would choose between the desktops for Project B.