Hi there,
So , Most serial ports support FLOW control, Hardware or Software flow control. For exactly that reason. Higher Baud Rates can overrun the UARTS receiver buffers.
You should be able to implement Software flow control X0n/Xoff or DTR/CTS Hardware flow control if your port supports it.
HTH
GL PJ
You may need another serial Uart LIB for other options to be available.