Except as provided in subsection (c), unless a person gives notice of a claim to the indemnifying or warranting bank within 30 days after the person has reason to know of the claim and the identity of the indemnifying or warranting bank, the indemnifying or warranting bank is discharged from liability in an action to enforce a claim under this chapter to the extent of any loss caused by the delay in giving notice of the claim.