Operation not valid with the current stack size
Your transaction only has 0x51 (just OP_1) in its scriptsig,  the OP_IF consumes the 1, and OP_SHA256 then operates on an empty stack, causing this error.