Unfortunately the KEF LSX do not have a USB digital in. That's why I got the LS50w:
The LS50W is a complete, high-fidelity music system that will cost you far less than you’d spend putting together the separate components necessary to match the performance of the LS50W. LS50W gives you all of the connectivity options you’ll need to get the most out of your music, including 2.4GH...
www.amazon.com
Best USB speakers you can get IMO. I also have the LSX and have them via optical on the TV. They are fantastic.
As for optical, I agree with
@orytek. I tried optical on my old 5,1 Mac Pro for a while and it was always problematic. It didn't 'just work' all the time like system speakers that would play beeps etc. at sound levels and controllable by the keyboard volume keys (if am remembering correctly). Sadly, you really want a USB in type of speaker set for it to 'just work' with macOS.
You might try hard-wiring the network cable in and using them via Airplay2. I've tried that with HomePods, and you CAN use HomePods as the system's main sound source, the problem is there is always lag on YouTube videos etc. Perhaps that's because of the wireless latency, and perhaps that goes away via hard ethernet connection? It's worth a try.
Anyway, good luck regardless.