Interfacing the RS232 to TTL with Raspberry pi pico using arduinoIDE

Please post complete code. Or a representative example that demonstrates the issue.

So even if you have found the stop-delimiter, you don't break.

What is the sender?

Note: you might find a suitable approach to serial reading in Robin's updated serial input basics tutorial