Manually created iron golems randomly despawn/respawn when you go/return from the nether.
Related issues
Comments

Same as/connected to MC-82945, I assume. Is there also a warning in the console whenever a golem goes through the portal?

None. Oddly two I put inside a fence seem unaffected.

Most likely MC-65040
Please do not mark unreleased versions as affected.
You don't have access to them yet.
--- This action was performed automatically. If you believe this was done erroneously, please :light_bulb_on: raise an issue.