STM32F411(Blackpill) not sending data after certain frame counts

I am not able to figure out why STM32F411 when integrated with RFM96 is not sending data after a some interval of time nearly after 300-500 frame counts . Before these counts I am able to receive the data at regular interval on my gateway .I have modified the code to work on Indian Frequency of 866 Mhz .
I have the code which I am using for sending data Code Link
Please look the code and tell me what to correct so that I can complete my project