Short answer:
The drive is being force-ejected because the dock can’t keep it powered and stable under heavy I/O. A better enclosure or a powered hub will stop the ejects permanently.
A bit longer answer:
I believe what you’re seeing is almost always a power, firmware, or USB controller issue, not a problem with APFS or macOS itself. Your WD/SanDisk is likely fine, but the PULWTOP USB-C dock can’t reliably sustain the power and data load when large transfers hit peak throughput. In Safe Mode, macOS disables third-party extensions and background services, which lowers USB bus stress—so the drive stays mounted. That’s why the symptom disappears there.
The fix is usually straightforward once you target the real cause. Start with these steps, in order:
- Connect the SSD directly to the iMac using a USB-C → NVMe enclosure or adapter—bypass the dock completely.
- Update firmware for both the SSD (WD Dashboard) and the dock, if available.
- Use a short, high-quality USB-C cable rated for 10Gbps or higher.
- In System Settings → Energy, disable “Put hard disks to sleep when possible.”
If the issue persists, the dock is the bottleneck—I suggest replacing it with a powered Thunderbolt or USB-C hub that can deliver stable current.