Hi Richard,
Unfortunately the USB drive might be the cause of the devices restarting. X96 come with 5V 2A power supplies which is 10W of energy.
2.5 HDD consume o.7 to 3W energy, SoC also requries 5-8W and if there is a spike in load the device may reboot.
We would advice using SSD instead or...