That's happened quite bad on the wife's F900XR 2021. After riding in the rain, or having been washed, the condensation is quite a lot. Took it back to the dealer who hosed around it and it steamed up, didn't clear within 30mins so reported back to BMW.
Now, we've had to take it back for a couple of days so the front end can be stripped back and left overnight. Not sure what that would tell them, but they have to go through the tick boxes and report back.
Apparently, they are not sealed units and have a breather hole in the back somewhere.
I can only assume they will replace the headlight, from a safety point of view.