I'm not entirely sure that this is a bug, but without changing it, I conducted a series of observations and experiments. Also not entirely sure what is causing the crash, but initially decided to ...
Before uploading this code to your Arduino device using the Arduino IDE consider installing the required LiquidCrystal_I2C.h library using the library manager ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results