I upgraded Microsoft.SqlServer.DacFx to version 162.4.92, which resolved the issue. I was previously on version 162.3.566.1.
I can only assume there was a bug in the previous version.