The object going dark is expected behaviour: if you select an object and specify “show only selected”, all other objects disappear, including the lights. As a workaround, you can either switch to Unlit Mode in the viewport, or select any working lights you need AND the object you want to work with together, then chose “show selected only” for all these objects. That’ll leave the lights up and your object illuminated.