Obviously I understand the issues with his small DC motor circuit too by diagnosing the root cause of power stability issues.This is not a safety issue and the motor is not 3 phase. It is a small DC motor with very rudimentary brushes and commutator. It will not survive a lot of abuse. The problem is being caused by the software which should not reverse the motor while it is running because that causes a lot of unnecessary electrical noise on the supply and will eventually damage the motor.
What you say doesn't negate the fact the controller should stay operational until it loses power to report and possibility mitigate a fault condition. The quickly reversing issue is a separate tangent to inadequate filtering and bypass components causing the board not to work correctly.
Sorry if I seem short but I had far too many excuses for poor stability (lockups, screen dead, controls don't work) performance in modern commercial embedded industrial power supplies and equipment due to inadequate design considerations of external EMI/RFI.