I think I found out the reason for that, actually. If in the Galaxy Settings the option "Smart dimming" (Has that always been there or did that come with an update?), which recognizes if you are currently looking at the display, is activated, then it activates the camera for a second before dimming to check if your face is there which causes the blue light to flash.