"fastboot set-active" command fails
The command shouldn't have any spaces. The correct command will be:

fastboot --set-active=a


Or if you want to write it in short:

fastboot -aa to set the active slot to A.

fastboot -ab to set the active slot to B.