A grave curse punishes you for stealing from a tomb or other resting place.
Curse
Magical
Type
Curse
Level
Varies
Traits
Curse, Magical
Saving Throw
Will save, with a high spell DC for a monster of its level (page 53)
Effect
You are hounded by undead creatures of the same level as the curse. Every night, you must attempt a DC 15 flat check. On a failure, an incorporeal undead manifests to hassle and harry you throughout the night, retreating before it can take much damage and often preventing you from gaining a full night's rest. Whenever you enter a graveyard or other area where bodies are buried, you must succeed at the same flat check or a body animates as a corporeal undead (typically a skeleton or zombie) to attack you. These undead are temporary and exist only to harry you; if you take control of the undead, move on, or otherwise avoid their attacks, incorporeal undead discorporate and corporeal undead collapse into ordinary corpses. The curse can be removed by returning the stolen items to their resting place.
Source: Pathfinder GM Core, p. 87
Bring Grave Curse into a Pathfinder 2e game with The DM Screen.