Strange issue with LMIC library

Dear all,
I am working on a project for the development of a weather station based on arduino and LoRa by using the LMIC library.
I had a strange issue when the size of the packet to send is higher than 52 bytes.

Example of code that properly work:
byte packet[52]; LMIC_setTxData2(1, packet, sizeof(packet), 0);

Example of code that does not work:
byte packet[53]; LMIC_setTxData2(1, packet, sizeof(packet), 0);

When the packet size exceeds the 52 bytes, the compiled code was also affected by another strange issue. In fact, its size was about the half of the compiled sketch that properly work.

How is it possible? Is there a limit in the packet size that the LMIC library can handle?

Thank you in advance for your help.

Best Regards

What does the LMIC documentation say?

The LMIC documentation does not give any information about a possibile limit in the array size.

2.5.12 int LMIC_setTxData2 (u1_t port, xref2u1_t data, u1_t dlen, u1_t confirmed)
Prepare upstream data transmission at the next possible time. Convenience function for LMIC_setTxData(). If data is NULL, the data in LMIC.pendTxData[] will be used.

Does the LMIC protocol support packets longer than 52?