pf2e.fyi
From Pathfinder #186: Ghost King's Rage, which isn't enabled.

Mental Assault

HAZARD 20
Stealth +41 (legendary)
Description Magic sigils Hidden in the grain of the wooden door trigger a magic trap that damages the mind of anyone attempting to pick the door's lock.

Disable DC 48 Thievery (legendary) to deface the symbols or Dispel Magic (10th rank, counteract DC 48) to counteract the trap.

AC 42; Fort +36, Ref +30
Hardness 35, HP 136 (BT 68); Immunities critical hits, precision

Shatter Mind (mental)
Trigger A creature attempts to Pick the Lock

Effect The triggering creature takes 8d10+44 mental damage (DC 42 basic Will). On a failed save, it's additionally Confused for 1 minute.
Reset The trap resets automatically if triggered and doesn't reset if disabled.
Pathfinder #186: Ghost King's RageOGL