Leaves yellowing during flowering is completely normal, even if you have proper nutes. The plant is actually eating itself to get as much energy as possible for resin production, and you can't stop it.