; or (v) if the noncitizen is not a protection case, the placement is based (in whole or in part) on— (I) the detained noncitizen’s report of an incident of abuse or misconduct; (II) the detained noncitizen’s decision to engage in a hunger strike; or (III) any other form of retaliation against the detained noncitizen. (B) Exceptions The limitation on solitary confinement described in subparagraph (A)(i) shall not apply if— (i) such confinement is a temporary response to the behavior of the detained noncitizen, which poses a substantial and immediate threat; (ii) all other options to de-escalate the situation have been exhausted, including less restrictive techniques such as— (I) penalizing the detained noncitizen through loss of privileges; (II) speaking with the detained noncitizen in an attempt to de-escalate the situation; and (III) providing an appropriate level of care through a licensed mental health professional; (iii) such confinement is limited to— (I) 3 hours after the detained noncitizen is placed in solitary confinement, if the noncitizen poses a substantial and immediate threat to others; or (II) 30 minutes after the detained noncitizen is placed in solitary confinement, if the noncitizen poses a substantial and immediate threat only to the noncitizen’s self; and (iv) if, after the applicable maximum period of confinement under subclause (I) or (II) of clause (iii) has expired, the detained noncitizen continues to pose a substantial and immediate threat described in the applicable subclause— (I) the detained noncitizen is transferred to the least restrictive safer alternative available pursuant to paragraph (4)(B)(i)(II)