A cryptographic hash function projects an arbitrary amount of data to a limited image space. In the case of P2SH, the hash is a RIPEMD160 hash, projecting the redeem script to an hash digest of exactly 20 B (160 b) length.
This is a trapdoor or one-way function that cannot be reverted (if it can be reverted, it's broken and therefore not a cryptographic hash function). Thus, a recipient cannot tell what redeem script was hashed to produce the P2SH address, and consequently cannot evaluate the validity of the redeem script.
If the recipient makes a mistake and provides the hash of an invalid script, there is no recourse.
Thanks for the thoughtful answer. So if the recipient makes a mistake the coins will simply be lost? – Pitchas – 2018-07-11T14:05:20.633
If the redeem script is unspendable, they are lost. – Murch – 2018-07-11T16:47:03.817