@faisal jee
Follow That way and it will be done
1- unlock bootloader by HTCDEV
2- FLASH TWRP recovery
3- from TWRP select wipe / advance / lower of page you will find fix partition
4- mark the data box , then convert it to from EXT to FAT , then back and wipe it .
5- do the same for SYS , and then for INTERNAL STORAGE .
6- after full wipe success with out any error , and the indication of (0 MB) GOSE OFF , back and reformat the above to EXT4
7- install any rom , from your ext-sd .
THAT'S IT , PRESS THANKS IF I SAVE YOUR LIFE