Custom Baud rate doesn't work for Serial request on Node-red on Beaglebone Black

Hello Everyone,
I have been using Beaglebone black with Node-red V1.3.5. I am using a serial node with custom baud rate 5787 bits per second. The node works for a while and then stops working. After a while, the node-red gets stuck, can't edit the node settings .
The only option I'm left with is to reset the system again and again to edit the nodes, rest of the times, the nodes are stuck.
Is there any workaround for this use case?