how to i fix The CPU?

it could be one of a million things.

first of all post your full cpu spec.

Next you will want to monitor your temps to find out how hot its getting.

When does it switch off, is it under heavy load, like when you are gaming for instance?