hello Oriol!
you are right! we found this hardware bug some weeks ago!
The problem is not the battery. The problem is the charger of the battery.
http://ww1.microchip.com/downloads/en/DeviceDoc/21984a.pdf
The MCP73831 continuously monitors the voltage at the VBAT pin in the Charge Complete mode. If the voltage drops below the recharge threshold, another charge cycle begins and current is once again supplied to the battery or load. This current heat the chip and because the sensor is near, the temperature change a little bit…
Remove this completely is impossible with this design (one more thing to resolve), but greatly improved if the sensor is at 90° and not touching the PCB.
Also could be corrected by software, because we know the state of the battery.
Maybe you can try to do this and give us feedback?
thanks for your appreciation!
Best!