Surprisingly there were not many guides or videos on how to replace the D2S Xenon bulbs on our beloved E53 X5's out there, so I recorded one the other day while replacing the bulbs on my wife's X5.
link:
https://youtu.be/PO3RFoYZSwI
Searching around on the forums has all kinds of suggestions ranging from removing the headlights to removing the front bumper first and then each headlight. In my experience, neither is necessary, provided your hands are small enough to remove the T20 torx bolt at the bottom corners of each headlight assembly.
It was a little tricky, but not too bad. I've been driving BMW's with Xenon for about 8 years and this is the first Xenon bulb I've ever had fail. I think that speaks to the longevity of them, much better than halogens.
Hope you all are well during these difficult times.