Try to use an OTG usb stick if you have ..
Also you can try to flash a twrp which you can copy the rom in memory and then reflash this twrp ..
You can try with adb sideload also if it pass installation ..
Also you can try to boot to system , if you only Format data probably device will boot with...