To answer your original question, yes, you can swap out the electrical switch block portion of the ignition switch, and I didn't disconnect the battery when I swapped out mine no drama.
You are clearly "gun shy" in terms of disconnecting the battery - but doing so should not normally cause the DME-EWS alignment errors you saw.
And by the way, there is no DME in your car - it's a DDE.
Getting to the electrical block on the back of the ignition switch is a bit fiddly but not a bad job. The switch block can be opened up and the contact cleaned but I swapped in a new one for reliability reasons.
BMW Part No. 61326901961