twrp crashes while trying to backup files
Somewhere you have a lot of files. Look at the process of creating a backup and pay attention to which folder the process lasts the longest. For me this folder was SuperSU logs folder in which there were thousands of files. When I deleted them my problem was solved (twrp 2.8.7.0).