This PR optimizes some of the logic related to group commit: 1. Improved the error handling when there is insufficient WAL space during import. 2. Accounted for cases where the content length is negative during import. 3. Added missing error log printing in `group_commit_mgr.cpp`.