For electronic questions like this i would refer to either the user manual or consult a trained and licensed electronics expert, as there are many types, and this is broad.
It might actually be the fan. There are some of those that happen to have the over heating problem. Its really random in which ones have the over heating probably but it does happen. And the whining is usually the fan. You can take it back but might have the chance of your next one over heating.