Download and install PowerToys, a set of utilities created by Microsoft.
Open PowerToys and browse to the Keyboard Manager. Enable the Keyboard Manager and click Remap a key. Choose Caps Lock -> Escape.
Note that this fix requires PowerToys to be running.