Gosh i used to know the answer to this one but it’s been ages. My rough understanding is just how the image is processed, bright lights blow out the image and it shows up as black. Why black? I don’t know, was trying to Google it but i’m having trouble finding the proper way to word it. It keeps showing me unrelated queries.
Edit: it’s also dependent on the white balancing and other camera settings. You can compensate for really bright lights but the overall image will probably end up dark.