OK.. I didn't get much of a reply on here and not sure what exactly caused it. This is the way that I understand what happened.
When I purchased the unit, I was told that I needed to specify the AC I had in my truck by showing them a picture of my dash. At the back of the unit a canbus module is connected; which is supposed to talk to the vehicle; especially the HVAC system.
Just before the AC compressor gave way, I noticed that my steering controls for the unit's radio were not working. For that week, we were having some really hot days where the temperatures were reaching well close to +49.C with high humidity levels as well; making if feel even hotter.
My assumption is that my aircondition was set to the highest obviously and I'm guessing the canbus module that was given with unit, overheated and stopped talking to the truck. This was why my radio controls were not working. Hence the cabin sensor failed to notice that the cabin was cool and didn't cut off the compressor. My in-dash blower fan was going on full blast and my compressor was working continuously. The mechanic said that when cleaning and clear the AC pipes, he found ice. This was not good and caused my compressor to burn out. Now I had to replace the compressor.
Now after it all, the mechanic now added a second aftermarket cabin sensor/module which won't lose connection with the aftermarket headunit. Now that the codes have been cleared, the unit is talking to both sensors I believe and if one fails, the other will keep it going so I won't face this issue again.
We'll see how it goes. I'm going to go to my mechanic after a couple of days and ask him to show me what exactly he did and I'll video it. So maybe if anyone else has this issue, we can sort it out.
I do suspect that maybe the original cabin temp sensor module might have failed as well. But then the fault code was suggesting that it wasn't able to talk to the center stack.
Will keep this updated so that it could help others.