How to cull the backside of a mesh but keep the lights inside?
In your picture, lights look like point. try with out lights and change the color of cubes:
picture 1

secondly, add black ground with a material with many roughness: picture 2

And play with cube's nodes
according to me it's the only solution.