It is probably a mechanical error in the motor of the window; you can completely replace it or try repairing it.