I would seem yellow light stimulates the plant’s defense mechanisms, causing it to produce more terpenes as a protective response.
Anytime you put energy toward defense you may inhibit growth in favor of defense.
So it seems yellow light can inhibit growth of cannabis in favor of defense.