Lumia 520 won’t install software using Windows Device recovery tool nor hard reset

I have a Lumia 520 locked with screen user code,

I have tried hard resetting, I go through all the steps but then it reboots into the same screen, tried the volume down with USB cable, also the Volume Up + Power + Camera

I have tried installing the software using Windows device recovery tool, and after it turns the phone into flashing mode then once it gives installing software it gives an error and the phone reboots into the same setting

what can be done?