[Moto G5 Plus Questions & Answers] Nivead:
you can look at your partitions via fastboot

C:\ADB>fastboot oem partition

...

(bootloader) sbl1: offset=128KB, size=512KB

(bootloader) rpm: offset=640KB, size=256KB

(bootloader) tz: offset=1152KB, size=1792KB

(bootloader) devcfg: offset=3200KB, size=64KB

(bootloader) aboot: offset=3456KB, size=1536KB

(bootloader) cmnlib: offset=4992KB, size=256KB

(bootloader) cmnlib64: offset=5248KB, size=256KB

(bootloader) keymaster: offset=5504KB, size=256KB

(bootloader) prov: offset=5760KB, size=192KB

(bootloader) sbl1bak: offset=6016KB, size=512KB

(bootloader) rpmbak: offset=6528KB, size=256KB

(bootloader) tzbak: offset=7040KB, size=1792KB

(bootloader) devcfgbak: offset=9088KB, size=64KB

(bootloader) abootbak: offset=9344KB, size=1536KB

(bootloader) cmnlibbak: offset=10880KB, size=256KB

(bootloader) cmnlib64bak: offset=11136KB, size=256KB

(bootloader) keymasterbak: offset=11392KB, size=256KB

(bootloader) provbak: offset=11648KB, size=192KB

(bootloader) modem: offset=11904KB, size=102400KB

(bootloader) fsc: offset=114304KB, size=1KB

(bootloader) ssd: offset=114305KB, size=8KB

(bootloader) dsp: offset=114313KB, size=16384KB

(bootloader) DDR: offset=130816KB, size=32KB

(bootloader) sec: offset=130848KB, size=16KB

(bootloader) utags: offset=130944KB, size=512KB

(bootloader) utagsBackup: offset=131456KB, size=512KB

(bootloader) modemst1: offset=131968KB, size=2048KB

(bootloader) modemst2: offset=134016KB, size=2048KB

(bootloader) fsg: offset=136064KB, size=8192KB

(bootloader) persist: offset=144256KB, size=32768KB

(bootloader) frp: offset=177024KB, size=512KB

(bootloader) cid: offset=177536KB, size=128KB

(bootloader) logo: offset=177664KB, size=16384KB

(bootloader) carrier: offset=194048KB, size=16384KB

(bootloader) metadata: offset=210432KB, size=512KB

(bootloader) kpan: offset=210944KB, size=8192KB

(bootloader) boot: offset=219136KB, size=16384KB

(bootloader) recovery: offset=235520KB, size=20580KB

(bootloader) misc: offset=256128KB, size=1024KB

(bootloader) limits: offset=257152KB, size=32KB

(bootloader) mota: offset=257280KB, size=512KB

(bootloader) dip: offset=257792KB, size=1024KB

(bootloader) syscfg: offset=258816KB, size=512KB

(bootloader) logs: offset=259328KB, size=2048KB

(bootloader) apdp: offset=261376KB, size=256KB

(bootloader) msadp: offset=261632KB, size=256KB

(bootloader) dpo: offset=261888KB, size=8KB

(bootloader) padA: offset=262016KB, size=128KB

(bootloader) sp: offset=262144KB, size=8192KB

(bootloader) hw: offset=270336KB, size=8192KB

(bootloader) oem: offset=278528KB, size=671744KB

(bootloader) cache: offset=950272KB, size=262144KB

(bootloader) system: offset=1212416KB, size=3538944KB

(bootloader) userdata: offset=4751360KB, size=56319983KB

OKAY [ 0.312s]

finished. total time: 0.328s

This is from one of my XT1687 - I'm sure there will be similarities, but also differences between your model and mine. Might look and see if a partition ended up too big, or maybe zero... just an idea.

If you could find somebody with the same phone ... you could fastboot their partitions and see a difference. Or if you buy another phone, hang onto this inoperative phone and continue to hack away on it.