Fastboot: failed flashing (remote: size too large) I'm flashing a GSI image using fastboot. After entering fastboot flash system system.img I get this:

E:\AndroidSDK\platform-tools&gt;fastboot flash system system.img
target reported max download size of 535822336 bytes
erasing 'system'...
OKAY [  0.016s]
sending sparse 'system' 1/7 (523260 KB)...
OKAY [ 17.280s]
writing 'system' 1/7...
FAILED (remote: size too large)
finished. total time: 17.306s


I also tried to flash it using TWRP, same problem.

What's the problem? Can I make system partition larger? Please help.

Edit: I have the latest adb version.
Fastboot has an option -S Used to cut large files into small ones. Specific information can be found at man page:
fastboot --help 

So, we can set the size of the crop block to 256MB:
fastboot flash -S 256M system system.img

Source