Can't Update iMac Due To "Missing Firmware Partition"
I am currently using a Late 2012 21.5 Inch iMac, running macOS Sierra using an external SSD plugged in by USB. This is because the internal hard drive the Mac originally came with has failed (sometime around 2016), and so it is not recognised. I've been trying to update to the latest versions compatible with my device (namely High Sierra, Mojave and Catalina), but they all produce the same error banner when I try to install the update on an external SSD - "You may not install to this volume because the computer is missing a firmware partition".
I've tried formatting another external SSD as APFS on newer Macs and attempting to install from there but another variation of the message appears, so that method doesn't work. I've tried to create a bootable installer using terminal, that also doesn't work.
Any help or advice would be greatly appreciated. Thanks in advance.
iMac 21.5″, macOS 10.12