[Essential Phone ROMs, Kernels, Recoveries, & Other] srgrusso:
I'm getting the following errors when I try to flash back to stock regardless which package I use.

fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 2: 5793 Aborted (core dumped) fastboot flash nvdef_a nvdef.img
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 3: 5798 Aborted (core dumped) fastboot flash nvdef_b nvdef.img
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 4: 5811 Aborted (core dumped) fastboot flash boot_a boot.img
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 5: 5820 Aborted (core dumped) fastboot flash boot_b boot.img
Sending sparse 'system_a' 1/5 (524284 KB) OKAY [ 13.647s]
Writing 'system_a' OKAY [ 3.279s]
Sending sparse 'system_a' 2/5 (524284 KB) OKAY [ 13.802s]
Writing 'system_a' OKAY [ 3.290s]
Sending sparse 'system_a' 3/5 (524284 KB) OKAY [ 13.251s]
Writing 'system_a' OKAY [ 3.284s]
Sending sparse 'system_a' 4/5 (514620 KB) OKAY [ 12.676s]
Writing 'system_a' OKAY [ 3.224s]
Sending sparse 'system_a' 5/5 (125396 KB) OKAY [ 3.414s]
Writing 'system_a' OKAY [ 0.791s]
Finished. Total time: 70.742s
Sending sparse 'system_b' 1/5 (524284 KB) OKAY [ 13.405s]
Writing 'system_b' OKAY [ 3.294s]
Sending sparse 'system_b' 2/5 (524284 KB) OKAY [ 14.401s]
Writing 'system_b' OKAY [ 3.293s]
Sending sparse 'system_b' 3/5 (524284 KB) OKAY [ 13.362s]
Writing 'system_b' OKAY [ 3.294s]
Sending sparse 'system_b' 4/5 (514620 KB) OKAY [ 12.469s]
Writing 'system_b' OKAY [ 3.228s]
Sending sparse 'system_b' 5/5 (125396 KB) OKAY [ 3.171s]
Writing 'system_b' OKAY [ 0.773s]
Finished. Total time: 70.692s
Sending 'bluetooth_a' (412 KB) OKAY [ 0.097s]
Writing 'bluetooth_a' OKAY [ 0.013s]
Finished. Total time: 0.675s
Sending 'bluetooth_b' (412 KB) OKAY [ 0.097s]
Writing 'bluetooth_b' OKAY [ 0.003s]
Finished. Total time: 0.102s
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 10: 9356 Aborted (core dumped) fastboot flash xbl_a xbl.img
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 11: 9379 Aborted (core dumped) fastboot flash xbl_b xbl.img
Sending 'abl_a' (780 KB) OKAY [ 0.110s]
Writing 'abl_a' OKAY [ 0.005s]
Finished. Total time: 0.128s
Sending 'abl_b' (780 KB) OKAY [ 0.107s]
Writing 'abl_b' OKAY [ 0.005s]
Finished. Total time: 0.115s
Sending 'dsp_a' (16384 KB) OKAY [ 0.486s]
Writing 'dsp_a' OKAY [ 0.114s]
Finished. Total time: 0.812s
Sending 'dsp_b' (16384 KB) OKAY [ 0.477s]
Writing 'dsp_b' OKAY [ 0.094s]
Finished. Total time: 0.584s
Sending 'modem_a' (94596 KB) OKAY [ 2.447s]
Writing 'modem_a' OKAY [ 0.596s]
Finished. Total time: 4.322s
Sending 'modem_b' (94596 KB) OKAY [ 2.317s]
Writing 'modem_b' OKAY [ 0.593s]
Finished. Total time: 2.952s
Sending 'vendor_a' (395304 KB) OKAY [ 10.478s]
Writing 'vendor_a' OKAY [ 2.482s]
Finished. Total time: 13.017s
Sending 'vendor_b' (395304 KB) OKAY [ 9.683s]
Writing 'vendor_b' OKAY [ 2.480s]
Finished. Total time: 12.165s
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 20: 12211 Aborted (core dumped) fastboot flash cmnlib_a cmnlib.mbn
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 21: 12239 Aborted (core dumped) fastboot flash cmnlib_b cmnlib.mbn
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 22: 12254 Aborted (core dumped) fastboot flash cmnlib64_a cmnlib64.mbn
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 23: 12279 Aborted (core dumped) fastboot flash cmnlib64_b cmnlib64.mbn
Sending 'tz_a' (1868 KB) OKAY [ 0.133s]
Writing 'tz_a' OKAY [ 0.011s]
Finished. Total time: 0.174s
Sending 'tz_b' (1868 KB) OKAY [ 0.132s]
Writing 'tz_b' OKAY [ 0.011s]
Finished. Total time: 0.146s
Sending 'hyp_a' (264 KB) OKAY [ 0.093s]
Writing 'hyp_a' OKAY [ 0.002s]
Finished. Total time: 0.103s
Sending 'hyp_b' (264 KB) OKAY [ 0.094s]
Writing 'hyp_b' OKAY [ 0.002s]
Finished. Total time: 0.098s
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 28: 12331 Aborted (core dumped) fastboot flash rpm_a rpm.mbn
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
./flashall.sh: line 29: 12335 Aborted (core dumped) fastboot flash rpm_b rpm.mbn
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 26768215 4k blocks and 6692864 inodes
Filesystem UUID: a6b94ffd-a13a-4118-b01f-06d349959c25
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done
Writing inode tables: done
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'userdata' (5197 KB) OKAY [ 0.212s]
Writing 'userdata' OKAY [ 0.059s]
Finished. Total time: 0.459s
Rebooting OKAY [ 0.000s]
Finished. Total time: 0.050s

Does anybody know why I'm getting these errors and how to fix?