There is no output from Digital Audio Out (Optical) when watching video from an external device connected with an HDMI cable.
When eARC mode is enabled, the audio signal from the HDMI input passes through the TV, so there is no output from Digital Audio Out (Optical). This is a specification of the TV.