I do not immediately see something wrong with your code or your wiring.
If you upload again, does it work again for a bit? Based on below probably not.
That is worrying. As is the below

That looks like a damaged microcontroller. And it's close to the I2C bus so might explain your problem.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project
See About the IDE 1.x category.