Sometimes this happens when not harvest at the right time. This is the last mature stage of the flower, she starts to produce seeds as a survival strategy since it was not pollinated she makes her way to perpetuate the species. If it was not the case, can be stress by light or ph change, but the first theory I think is the most common.