Detecting Communication Frames
The header should include also size of data packet and everything should end with CRC or some checksum. You say that you have been inspired by Modbus, so why you didn't copy the whole protocol, which runs perfectly over decades in industry?

If you include checksum at end, there is no way the telegram can be wrongly interpreted