The wiring that leads to those cockpit window sensors is smack dab behind where they store the service carts.
The error messages indicates that the sensors detected heat, not that the sensors went offline or were disconnected by the wiring melting. Also, no cabin or galley smoke detected.