ESP8266 freeze over time

No error message from the console, I will try to flash with the old code but my concern is that it was working with an old pubsub library, since I've upgraded it, when compiling it give me error message, so I've taken a exemple from the new library and paste back all my code without any error... and I don't remember which version the library was.