Can you unscrew the dome light fixture and pull it down enough to access the connections? It may be corrosion of the wire connections or the light sockets. There should be a ground wire to the fixture. There were a couple of comments a few years ago about bad connections to the dome light causing enough heat to char the top wood framing and could have easily led to a fire. If you can’t solve it it may be best to disconnect it.