Lighting building error

I’m making a marble racing game and I’m trying to optimize it some, so I set my main directional light to Static. But whenever I build my lighting it goes black like in the first image and appears to have canceled or something. But as soon as I edit a parameter on the light, such as rotation, it returns to normal. I haven’t been able to successfully build lighting yet.
Lighting after build attempt

lighting after changing a parameter

error message log