in folder "C:\Users\XXXX\AppData\Local\Android\Sdk", there are two subfolders
--- .downloadIntermediates
--- .temp
you need to delete the temporary contents inside before you are able to re-download "NDK (Side by side) 27.0.12077973" package", make sure that the network is in good state.