My dad's 96 accord had that same problem. After an accident, the door wasn't put back on properly and on big bumps or angles the dome light would do the same thing. He took it back and they realigned the door, and the dome light never came back on like that.