Homing z in milling mode leaves lower z switch pressed. When switching to printer mode, any attempt to move z upwards fails because of the pressed switch. Homing will then drive the z axis to a crash with the lower z-switch fixture (the screw next to the switch) and fail.
I did not dare to try out doing this the other way round (milling home after printer home), as the upper switch will likely get killed this way.