You may have been doing too much too soon. Only very light stretching is necessary at that stage, and even then any loading of the hamstrings in traditional stretching exercises can be too much as it is such a significant stabilizing muscle. It probably is not significant but should be checked.