No important data is on the SD card, only an external drive attached to the pi. I have had to turn the pi off to take the data off of the drive.
Raspberry Pi
Welcome to the programming.dev Raspberry Pi community!
Raspberry Pi is a series of small single-board computers. It is widely used in many areas because of its low cost, modularity, and open design. It is typically used by computer and electronic hobbyists.
Rules
Members of this community are expected to exhibit mature and respectful behavior.
Those who fail to uphold these standards may find their posts or comments removed, with repeat offenders potentially facing a permanent ban.
Please keep discussions in English so that they can be appropriately moderated.
Links
If it happens again and you're curious you could mount the root partition of the sd card and look at the logs and try to fix the issue
Worthwhile to check temperatures and see if the PI is shutting off after overheating.
Possibly a short in that button. I had one of those, it kept doing that.