Changing directional light rotation with slider makes light invisible

I’ve made a slider that can adjust the rotation of my sun. All is working except every other step of the slider makes the sunlight invisible. If I adjust the sun with “Event Tick” instead of “On Value Changed” everything seems to be working.

This is how I adjust the light’s rotation with the slider:

Here is short video showcasing the problem:

Do you know the cause?

The code looks fine, however I would recommend moving the get all actors of class nodes to begin play and storing their array refs. Its a heavy operation and the slider value changed causes a lot of executions. It could be causing a problem.