It's a Chilean slang that means 'to go crazy' or 'lose one's mind'. It can be used when someone is acting irrational or not thinking clearly.
Examples
- Spanish: Estás rayando la papa, necesitas calmarte y pensar con claridad.
- English: You're losing your mind, you need to calm down and think clearly.