Help while installing stock rom.zip
Place the ROM zip file in /data/media , that won't get wiped, when you wipe with TWRP

That's assuming you don't have an external SD.

See this for more -What&#39;s the difference between Data and Internal Storage?