You are interfering with RUI3 which is handling the sleep modes, shutting down the LoRa transceiver if needed, and other actions to lower power consumption.
I have no example or guide for what you are planning to do.
This is not in my examples, because the application doesn’t have to care about it.