Problem-xiao nrf52840 board bleuart send size over 20 bytes

Try this.
NRF52_XIAO_MTU_TEST.zip (5.0 KB)

The following link is an example of using this technique. For your reference
XIAO nRF52840, Efficiently Uploads Peripheral On-Board Flash ROM Data to Central