I am using the IMXRT1050-EVKB with SDK v2.10.0 and example evkbimxrt1050_dev_msc_ramdisk_bm. I get the same result using our custom board design.
The device will mount but when I press eject the device immediately remounts. I see the same behaviour on both Windows and Mac.
I added a case to catch the eject event but the stack doesn't seem to do anything with it.
case kUSB_DeviceMscEventStopEjectMedia:
eject_handler(); // increment eject count
error = kStatus_USB_Success; // the calling function doesn't even look at this
break;