Stuck at boot animation on multiple custom ROMs Just yesterday I thought of having a new ROM installed on my phone and it is not the first time I'm doing it. Though I made a mistake of not taking a backup of the system before flashing the custom ROM.

These are the steps that I followed:


Moving to bootloader and rebooting to TWRP recovery 
Wiping the cache, system, data and dalvik cache
Moving to install option and installing the CustomROM1.zip from the Internal Storage
But the screen is stuck at boot animation
Using my laptop I tried to do the following:


5.1. fastboot erase system and fastboot erase recovery

5.2. Flashed TWRP recovery again using fastboot flash recover twrp.img 


Moved the CustomROM2.zip file in the Internal Storage and tried to flash it using install option but resulted in boot animation loop


I even tried to ADB sideload and flash the zip but resulted in the same error.
Currently I'm on Moto G Play (Harpia) and the ROMs that I used are

CustomROM1 = Resurrection Remix v. 5.8.3

CustomROM2 = Eelo v. 0.7

Any sort of help to get out of this would be totally appreciable. And thank in advance.
After much try and waiting I couldn't get any satisfactory result out of it. So ultimately I had to flash the stock firmware. The name of the firmware could be deduced from the command fastboot getvar all

https://androidforums.com/threads/bootloader-unlock-back-to-stock-for-motorola-e4-plus-owens.1264881/

This is the link anyone who's facing the same issues can refer to.