So i found out Xcode running in the backround (while it was closed) causing my macbook to overheat but once i uninstalled the app it came back to normal as per. How can i fix this please i don't wanna send this back for this small bug.
I checked the activity monitor and i could see the Xcode eating 80% of the CPU while it was closed.