If you look at things that are supposed to help - vitamins (B1, D, K2) and electrolytes (magnesium, potassium, sodium) - whether things are effective or not and the time scale to effect are all over the place. Whether some are entirely wrong or due to study design or because the it's highly context-specific, is open. Take a look at your intakes of the above, maybe tracking with something like chronometer, test out supplementation and look for a pattern.
In my experience the biggest factor is sleep - training hard and not enough sleep = problems. Interestingly, almost always on only one side of the body, with an unpredictable pattern not related training stress.