Just a guess, but it might be a hall effect sensor problem.
That type of screeching sounds similar to to what happens when the RC ESC controllers lose sync. RC controllers don't use hall effect sensors at all, but instead rely on back EMF from the motor to sense position (that's why electric bikes powered by RC motors have to have a running start). If, for some reason, the controller loses sync with the back EMF pulses, the result is a loud screeching, and loss of power, until the controller locks back in.
If your controller board is losing one or more of your hall effect sensors, which let the controller know the position of the windings relative to the magnets, then it might cause that kind of screeching.
Check the fine sensor wires coming back from the motor, and right into the controller board. anything pinched or loose might be giving intermittent feedback.
Intermittent problems are always a bitc.. er, pain.