Thank you for asking your question today. From what you've described, the first thing that came to my mind was the possibility of bad memory (RAM). You can test the memory by doing one or both of the following options:
to test the memory. LINK
It's pretty straight forward, as you can see.
If your system freezes during the test you probably have one or more faulty memory chip(s).
The more accurate option would be to download/install Memtest
After installing it, do the following:
1. Shut down your computer.
2. Turn on your computer while holding the Command
keys You can release those keys when you see black screen with white text with logging information from your system starting in Single User Mode
3. After all logging is complete, your system is ready to run memtest
command, press the ENTER key after you type:memtest all
4. When the test has completed, you should see a message with information about your memory status. If your system freezes during the test you probably have one or more faulty memory chip(s).
I hope this helps. Please reply back if you have additional questions or concerns. If you have no additional questions, please remember to rate my service before exiting the site so I can be credited for my time.