When finished, the output from sudo gpt -r show /dev/disk0 should appear as shown below.
I think I was able to successfully fix this by first installing High Sierra and booting to a USB and disabling SIP-then booting to High Sierra and running the APFS Boot ROM pkg. Apfs container error 2 GB disk1s1 2: APFS Volume Preboot 19.