I believe both heat and bolting cause bitterness. As soon as the winter lettuce in my greenhouse started to bolt the lettuce became bitter. The greenhouse never hit 80 usually in the 60's. I don't plant lettuce in the summer here because it is always bitter. Near the coast where it seldom gets above 70 lettuce is grown year round