From the description of the problem the washer is stopping in mid-cycle because it is sensing an error. Iâ€™d suspect the door lock assembly first for this problem.
The status lights blinking on this particular washer indicate an error and the lights blinking flash the code.
Some models have a display and the code is easy to read but this washer has not display so the error code is determined by the number of blinks the status lights flash. If you're willing and patient then the image below contains the information on how to bring up and read the error code the washer is flashing when it stops.
The instructions also tell how to bring up the error without running a cycle.
It may take a couple of tries but it will help if the specific error can be read.
The top part of the instructions tells you how to enter and run the diagnostic cycle. This is a good test because once entered you turn the knob clockwise and specific things happen.
From the description you give the most likely problem is with the door switch. As Long as the washer fills and tumbles in agitation the motor and motor control is most likely okay. If the washer runs completely through the diagnostic test and all functions work then the door latch is the most likely cause of your problem.
You don't mention if it quits before or after the drain or if it will drain at all.
Try the test and try reading the error code and it may take a few tries but if you can read the error or run the diagnostic test then this problem can be resolved.
You can submit another question with any additional details for further assistance.