Simple one-to-one relation throws error

Sorry I forgot to write back, I was not able to reproduce it on a fresh Windows 10 VM, using various PG versions (10, 12, 13)