Not sure if this works for the totally gray screen issue, but for the general issue of not being able to change the primary desktop background, because the Settings dialog is stuck on changing the secondary background... The fix is to disconnect the secondary display, THEN do the normal procedure of changing the desktop background, giving MacOS no choice other than to offer you the primary display choices.