the rom was actually on the internal, ill do that and update you on what happens.Is your restore on the ext sd??
And are you 100% sure that the odin stock is the 100% correct file for your device??
Download a copy of the rom onto your ext sd..
From twrp now you need to wipe
Data/system/dalvik/cache/and internal. ×3
Then factory data reset ×3
This will wipe the device clean.
Then flash the rom from your ext sd..
If this also fails pull the battery.
Go back into download mode and flash the stock odin for your device again..
Make sure you are extracting the tar image for your device and loading it in the pda slot for odin...
Note: odin may be failing because you have reactivation lock on...