This will only work if parity is still valid:
-Tools -> New Config -> Retain current configuration: All -> Apply
-Check all assignments and assign any missing disk(s) if needed, including old disk5 and new disk8, replacement disk8 should be same size or larger than the old one
-IMPORTANT - Check both "parity is already valid" and "maintenance mode" and start the array (note that the GUI will still show that data on parity disk(s) will be overwritten, this is normal as it doesn't account for the checkbox, but it won't be as long as it's checked)
-Stop array
-Unassign disk8
-Start array (in normal mode now), ideally the emulated disk8 will now mount and contents look correct, it might not since the array was started without old disk5 so parity won't be 100% valid with it back in, if it doesn't mount hopefully a filesystem check on the emulated disk will fix it
-If the emulated disk mounts and contents look correct stop the array
-Re-assign disk8 and start array to begin rebuilding.