It says in Kiddushin 40b נענה ר"ע ואמר תלמוד גדול נענו כולם ואמרו תלמוד גדול שהתלמוד מביא לידי מעשה (Rabbi Akiva answered and said: Study is greater. Everyone answered and said: Study is greater, as study leads to action.)
But then it says in Pirkei Avot 1:17 וְלֹא הַמִּדְרָשׁ הוּא הָעִקָּר, אֶלָּא הַמַּעֲשֶׂה. וְכָל הַמַּרְבֶּה דְבָרִים, מֵבִיא חֵטְא: (Study is not the most important thing, but actions; whoever indulges in too many words brings about sin.)
How can these teachings be reconciled?