Hi,
First off if it's freezing also in Safe Mode that could be a possible hardware failure and you're maybe right about the CPU or GPU. But few more test to try before concluding which one is faulty.
- Do load BIOS and see if it will still freeze because if it does the problem is definitely a hardware.
- But consider that overheating can also cause this freezing issue even in BIOS.
- Do open your laptop and clean the inside and make sure that there's no dust or debris stopping the fans from spinning and apply new thermal paste into the GPU and CPU.
- If all these will not work the only solution is for a motherboard replacement specially if both CPU and GPU are soldered.