IPhone 6 Plus temperature problem

Hello, since I changed the display and battery I have several problems with temperature and it shows many times the message "iPhone needs to cool down.."

Any solution? Thanks!!