While pushing to git using Termux, it crashes while compressing files
It is possible that you don't have enough free disk space for the compression.

(Termux resides in the local storage and not on the SD card, so you'd need to check your device's free space.)