typically it [OEM configuration /setup] works consistently unless hdmi monitor is connected at boot time or been connected at boot time prior to running the headless OEM setup.
Sometime frequent failures might be due to weak USB cable connection so some other cable could be tried instead