first, you need to be sure you have latest fastboot version on your pc
second, if your device have super partition (mostly Q vendor), you need to be sure you selected right flash mode (need fastbootd)
third, if you can flash vanilla build, but can't gappsed - then system image is bigger than...