I own a Samsung side by side refrigerator model SR-S20FTC.
As it reaches the set temperature it turns itself off and defreezes. I need to unplugg it in order for it to start freezing again, after which it does the same thing.
If I’m getting what you’re saying correctly it sounds like it’s cutting out as the compressor is overheating and cutting out. If I’m right then, honestly, it’s scrap as it’d be too expensive to repair.