Hi,
You can configure the size of the error.log in OSGI Configuration Manager(/system/console/configMgr). Look for "Apache Sling Logging Writer Configuration". You can set the size of the file in "Log File Threshold" property. A size limit can be specified setting a pure number indicating the number of bytes or a number with a size indicator KB, MB, or GB (case is ignored).
Thanks,
Ramya