The Rambam wrote in the ninth chapter: One does not make a sefer torah such that its length is greater than its circumference, nor its circumference greater than its length. And how much is its length? In gevil, six tefachim, which are twenty-four etzbaot according to the width of a thumb of the hand. And in klaf, either less or more, provided that its length is equal to its circumference. And similarly, if one made it in gevil less than six tefachim and reduced the script, or more than six tefachim and expanded the script until its length is equal to its circumference – this is according to the mitzvah. Thus far his words. And he wrote further that the measurement of the margin at the bottom is four etzbaot, and at the top three, and between column and column two etzbaot, etc., and all these measurements are for the mitzvah. And if one decreased or increased – he did not disqualify it. Thus far his words. For this matter of its length being equal to its circumference is a very difficult thing, as in the Gemara (Bava Batra 14a) it is stated that Rav Huna wrote seventy sifrei torah, and it only happened for him once, see there. And if this were an absolute requirement, it would be difficult to find a kosher sefer torah. Rather, it is not an absolute requirement. And in any case, it appears that six tefachim is not even initially for the mitzvah, and only in gevil is the measurement of the writing such a dimension, and so it is implied in the Gemara ibid. And even though the dimensions of the Tablets, and the sefer torah that was in the Ark next to the Tablets, were six tefachim as is explained there, nevertheless this is not a strict requirement for all sifrei torah (so it appears in my humble opinion).
כתב הרמב"ם בפרק תשיעי (רמב"ם הלכות ספר תורה ותפילין ומזוזה ט): אין עושין ספר תורה לא ארכו יתר על הקיפו, ולא הקיפו יתר על ארכו. וכמה הוא ארכו? בגויל ששה טפחים, שהם עשרים וארבע אצבעות ברוחב אגודל של יד. ובקלף או פחות או יותר, והוא שיהא ארכו כהקיפו. וכן אם עשה בגויל פחות מששה טפחים ומיעט את הכתב, או יותר מששה טפחים והרחיב את הכתב עד שיהא ארכו כהקיפו – הרי זה כמצוה. עד כאן לשונו. וכתב עוד דשיעור הגליון למטה ארבע אצבעות, ולמעלה שלוש, ובין דף לדף שני אצבעות וכו' וכל אלו השיעורים למצוה. ואם חסר או הותיר – לא פסל. עד כאן לשונו. דדבר זה דארכו כהקיפו הוא דבר קשה מאוד, שהרי בגמרא (בבא בתרא יד א) איתא דרב הונא כתב שבעים ספרי תורה, ולא איתרמי ליה אלא חד, עיין שם. ואם היה זה לעיכובא היה בקושי למצוא ספר תורה כשרה. אלא דאינו מעכב. ועל כל פנים נראה דששה טפחים אינו אפילו לכתחילה למצוה, ורק בגויל שיעור הכתיבה כן הוא המידה, וכן משמע בגמרא שם. ואף על גב דמידת הלוחות, והספר תורה שבארון אצל הלוחות, היו ששה טפחים כמבואר שם, מכל מקום אין זה קפידא לכל הספרי תורה (כן נראה לעניות דעתי).