Use google, search, and manually download ios5 and save yourself hours of headaches. Very simple.
To those having issues downloading....
iOSOriginal thread: https://forums.imore.com/threads/to-those-having-issues-downloading.220651/
Original thread: https://forums.imore.com/threads/to-those-having-issues-downloading.220651/