The System.Memory shim (even the latest version version 4.6.3) for .NET Framework, does not support specifying custom precision for serialized data.
Given that ES driver tries to pass there a G17 format string, it crashes. This leads to the inability of driver to serialize floating-point numbers, when driver is running under .NET Framework.