Fix lighting crash

Hello, when i fix the lighting build in my game after a while of it fixing my PC freezes and to unfreeze my PC i have to restart it why does this happen

PC hardware:

Graphics Card
GTX 1080

AMD Ryzen 7 2700X Eight-Core Processor

31.95 GB of RAM