Ole 128x32 crash

Hi, I managed to make everything work. The only thing I do not understand is that after a while that works well the display goes crashing.
If I reset Arduino he works again.
What can it be?
Thanks
chip

#include <SPI.h>
#include <LoRa.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>


#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);

#if (SSD1306_LCDHEIGHT != 32)
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
#endif



void setup() {
  Serial.begin(9600);
  while (!Serial);
  Serial.println("LoRa Receiver");

  if (!LoRa.begin(433E6)) {
  Serial.println("Starting LoRa failed!");
  while (1);
  }
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
  
  display.clearDisplay();
  delay(1000);
  display.display();
  
 
  
}

void loop() {
  display.clearDisplay();
  display.setTextSize(1);
  display.setTextColor(WHITE);
  display.setCursor(0,0);
  int packetSize = LoRa.parsePacket();
  if (packetSize) {
  // received a packet
  Serial.print("RECEIVED  ");
  display.print("RECEIVED  ");
  

  // read packet
  display.setCursor(0,0);
  while (LoRa.available()) {
  display.print((char)LoRa.read());
  Serial.print((char)LoRa.read());
  
  }

  Serial.print("RSSI ");
  Serial.println(LoRa.packetRssi());
  display.setTextSize(2);
  display.setTextColor(WHITE);
  display.setCursor(0,18);
  display.print("RSSI ");
  display.print(LoRa.packetRssi());
  display.display();
  
  
  
 }
}

work fine.jpg

crash!.jpg

It may be a memory problem, from your arduino not your display. Try using the F function for your prints. There is also a possibility to add instructions to monitor the amount of memory used by your code (but I don't know them by heart), it could help follow the memory requirement of your code and understand the problem.