Check the slack in the common bare wiring for sockets attached to a mounting plate, especially the bonus ring.
I had similar symptoms after replacing bulbs; that ring is kinda tricky and turns out I'd inadvertently pushed a few of the ground wires against the mounting plate while handling it.
Pulled the slack away from the plate and all went back to normal.