AccessFlashAsUSBDisk on NRF52 XIAO Sense throws errors

Arduino: 1.8.19 (Mac OS X), Board: “Seeed XIAO BLE Sense - nRF52840”

WARNING: library USBMSD claims to run on mbed, mbed_portenta, mbed_nano, mbed_edge, mbed_rp2040 architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).
In file included from /var/folders/c_/c8sn5cj6ks0m312k5c15dr00000gn/T/arduino_modified_sketch_134247/Nano33BLE_FlashMassStorage.ino:8:0:
/Users/andreasknoefel/Library/Arduino15/packages/Seeeduino/hardware/nrf52/2.6.1/libraries/USBMSD/src/PluggableUSBMSD.h:264:26: error: ‘MSD_MAX_PACKET_SIZE’ was not declared in this scope
uint8_t _bulk_in_buf[MSD_MAX_PACKET_SIZE];
^~~~~~~~~~~~~~~~~~~
/Users/andreasknoefel/Library/Arduino15/packages/Seeeduino/hardware/nrf52/2.6.1/libraries/USBMSD/src/PluggableUSBMSD.h:264:26: note: suggested alternative: ‘MBED_MAX_TASK_SIZE’
uint8_t _bulk_in_buf[MSD_MAX_PACKET_SIZE];
^~~~~~~~~~~~~~~~~~~
MBED_MAX_TASK_SIZE
/Users/andreasknoefel/Library/Arduino15/packages/Seeeduino/hardware/nrf52/2.6.1/libraries/USBMSD/src/PluggableUSBMSD.h:265:27: error: ‘MSD_MAX_PACKET_SIZE’ was not declared in this scope
uint8_t _bulk_out_buf[MSD_MAX_PACKET_SIZE];
^~~~~~~~~~~~~~~~~~~
/Users/andreasknoefel/Library/Arduino15/packages/Seeeduino/hardware/nrf52/2.6.1/libraries/USBMSD/src/PluggableUSBMSD.h:265:27: note: suggested alternative: ‘MBED_MAX_TASK_SIZE’
uint8_t _bulk_out_buf[MSD_MAX_PACKET_SIZE];
^~~~~~~~~~~~~~~~~~~
MBED_MAX_TASK_SIZE
/var/folders/c
/c8sn5cj6ks0m312k5c15dr00000gn/T/arduino_modified_sketch_134247/Nano33BLE_FlashMassStorage.ino: In function ‘void setup()’:
/var/folders/c
/_c8sn5cj6ks0m312k5c15dr00000gn/T/arduino_modified_sketch_134247/Nano33BLE_FlashMassStorage.ino:13:8: warning: unused variable ‘buffer’ [-Wunused-variable]
char buffer[100];
^~~~~~
exit status 1
Error compiling for board Seeed XIAO BLE Sense - nRF52840.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

This error indicates that the USBMSD does not work on the XIAO BLE.