A TopDon dongle with BMW software was used to scan the X5. No light control module codes were present. The scan must have reset something. I took the key out, waited a few moments and started it up. Sure enough, the headlights went up and down. The light also stopped flashing. The switch green light is solid. All good for now.