I've read a lot of post dealing with raspberry boot problems. My case is slightly different.
I've bought a raspberry pi some months ago, just for trying it and learn a little bit of python, I've tried to make an alarm clock using one of the breadboard kit that can be found online.
Since I need it to work as an alarm clock, I never power it off, nor interact with the system during the day. Randomly, generally every 3-4 days it gets stuck. If I connect a keyboard it doesn't responde, black screen, and cannot ssh into the system.
I've even bought a new 64GB sd card, thinking it could be the problem, but things are not changed.
Is there some raspberry functionality for which it goes idle after a given time of inactivity or something like this? Any ideas on how to solve this?