Without knowing the model number of your washer I will not be able to provide any model specific information. Generally speaking the "OL" error code could indicate an overloaded washer/friction problem or it could mean the lid is open, depending on the model washer.
From what you are describing it sounds like either the motor is dragging down for some reason or the control board is falsely sensing an overloaded condition. I added an image with some useful information if you have an Oasis washer.
I recommend making a visual inspection by looking under the washer to see if something is obstructing the motor movement, also check between the tub cover & the top of the spin basket. Make sure the basket will move freely up and down too. If you still have the same results after making these checks I would recommend calling a service technician to diagnose & repair.
Be sure to disconnect electrical power before attempting any checks.
Resubmit your question with the model number and details for model specific information.