Xbox will turn on just fine but will freeze and crash after about 30 minutes

The console is about 7 years old , i think its an internal hardware problem.

Have you tried cleaning it and replacing the thermal paste? It sounds like the xbox is overheating.