When a smartphone like the Samsung Galaxy A50 keeps restarting by itself, you can almost expect it to be an issue with the firmware, especially if there are no signs of physical and/or liquid damage.