I found the solution.
Go to System Preferences > Accessibility > Display
Drag the slide for cursor size a bit. This will not only change the size of the cursor, but also keep it as an arrow with a white outline, not change it tp a black horizontal bar as in the GIF.