It's not very likely that lucid dreaming caused the pain. Only thing I would say is did you take any pills to get lucid? If so, maybe that's the problem.