compiler Not able to load lighting on resetting scene

when my player collides with enemy, I reset the scene using

scenemanager.LoadScene(SceneManager.GetActiveScene().buildIndex;

but on loading my first scene the lighting is gone.
I unchecked the auto checkbox in lighting window and generated Lighting.

But now on compiling it is showing error “Baking Lighting data asset failed”.
Please help in fixing this error.!
and how can i get back lighting on resetting the scene.

I am having the exact same issue.

Restarting Unity worked for me.