pub fn is_bad_sequence_error(error_msg: &str) -> bool
Detects if an error is due to a bad sequence number. Returns true if the error message contains indicators of sequence number mismatch.