In case of a failed UPI transaction, the amount is usually refunded to your bank account within a few minutes to a few days, depending on the bank's policy.