Clean wipe and twrp installed but odin keep failing and I cant install through twrp
Before trying to help with this, can you tell me if you were on MM 6.0 or LP 5.1?
And the version number for Odin that you are using also?
You may be having a conflict between the Odin version number, and the last Modem filed installed on your phone, in which case you need to have the absolute correct version of Odin for the package, otherwise itll fail at "NAND WRITE START!" Forever.
The Odin versions are V3.10=Lollipop & V3.11=Marshmallow. I'm really hoping that's the issue man that's an easy fix and otherwise the only thing i could suggest is
Go to TWRP>Settings, and hit the "Fix Contexts" button.
Extract the stock firmware with 7z or whatever.
Take the recovery.img file, place it onto your device,
Hit Install and change from viewing zip only to img flashables with button @ bottom,
Flash your recovery.img to the recovery area with TWRP,
Reboot first into the recovery mode, do a factory reset with it ( this should return it to the stock binary platform),
If all this pans out so far bro go ahead and try download mode and ODIN stock firmware again.
If you hit a bump let me know I'll try to help, hopefully its the easy fix though lol.