Avinash,
This will fail in ECC and PI (whatever version it is on) has no say.
You cannot handle this exception since it will fail because of inconsistent structure. If I am not wrong, if you transport the object in ECC to another environment, it will show error return code.
Hope it helps!
Ambrish