Is there a way to set the length of the Cyclic Extrapolation in the Graph Editor?
A cyclic extrapolation is actually driven by an F-Curve modifier. In the Graph Editor, press N to expose the Properties panel and then go to the Modifiers tab and under Cycles click Restrict Frame Range and change the End value.