I had built cave with Filler Blocks, but what is strange when the NPC goes to attack so lamps go off. I have not made any settings.
There are pink core, fuel tank, generator, NPC Spawner (Thin Plate) lights bloks in the POI. All lights turn off in survival mode when the NPC attacks. Weird, and it destroys the decoration and colors of the cave.
Are you using sensors to control the lights? You might need to upload a video and/or the blueprint of the cave.