You are creating a Paint material, see under EDIT 2 of your post Physically Based Material in Headless doc - #3 by Laoky where you do
System.Guid pbrGuid = new System.Guid(Rhino.Render.RenderMaterial.PaintMaterialGuid.ToByteArray());
Instead, use the GUID I provided to you 5a8d7b9b-cdc9-49de-8c16-2ef64fb097ab
In Rhino 8 create a PBR material, save that to a file and open up, you’ll see something like this:
<xml>
<material type-name="5a8d7b9b-cdc9-49de-8c16-2ef64fb097ab" render-engine-id="99999999-9999-9999-9999-999999999999" plug-in-id="638A0098-0511-482B-95BF-8CF47FD32C17" type-id="5A8D7B9B-CDC9-49DE-8C16-2EF64FB097AB" notes="" tags="" hidden="false" reference="false" auto-delete="false">
<parameters-v8>
<parameter name="automatic-dynamic-field-meta-data" type="string"><xml/></parameter>
<parameter name="pbr-base-color" type="color">0.980000019073486,0.980000019073486,0.980000019073486,1</parameter>
<parameter name="pbr-base-color-on" type="bool">false</parameter>
<parameter name="pbr-base-color-double-amount" type="double">1</parameter>
<parameter name="pbr-base-color-amount" type="int">100</parameter>
<parameter name="pbr-subsurface" type="double">0</parameter>
<parameter name="pbr-subsurface-on" type="bool">false</parameter>
<parameter name="pbr-subsurface-double-amount" type="double">1</parameter>
<parameter name="pbr-subsurface-amount" type="int">100</parameter>
<parameter name="pbr-subsurface-scattering-radius" type="double">0</parameter>
<parameter name="pbr-subsurface-scattering-radius-on" type="bool">false</parameter>
<parameter name="pbr-subsurface-scattering-radius-double-amount" type="double">0.01</parameter>
<parameter name="pbr-subsurface-scattering-radius-amount" type="int">1</parameter>
<parameter name="pbr-metallic" type="double">0</parameter>
<parameter name="pbr-metallic-on" type="bool">false</parameter>
<parameter name="pbr-metallic-double-amount" type="double">1</parameter>
<parameter name="pbr-metallic-amount" type="int">100</parameter>
<parameter name="pbr-specular" type="double">0.5</parameter>
<parameter name="pbr-specular-on" type="bool">false</parameter>
<parameter name="pbr-specular-double-amount" type="double">1</parameter>
<parameter name="pbr-specular-amount" type="int">100</parameter>
<parameter name="pbr-specular-tint" type="double">0</parameter>
<parameter name="pbr-specular-tint-on" type="bool">false</parameter>
<parameter name="pbr-specular-tint-double-amount" type="double">1</parameter>
<parameter name="pbr-specular-tint-amount" type="int">100</parameter>
<parameter name="pbr-roughness" type="double">0.2</parameter>
<parameter name="pbr-roughness-on" type="bool">false</parameter>
<parameter name="pbr-roughness-double-amount" type="double">1</parameter>
<parameter name="pbr-roughness-amount" type="int">100</parameter>
<parameter name="pbr-anisotropic" type="double">0</parameter>
<parameter name="pbr-anisotropic-on" type="bool">false</parameter>
<parameter name="pbr-anisotropic-double-amount" type="double">1</parameter>
<parameter name="pbr-anisotropic-amount" type="int">100</parameter>
<parameter name="pbr-anisotropic-rotation" type="double">0</parameter>
<parameter name="pbr-anisotropic-rotation-on" type="bool">false</parameter>
<parameter name="pbr-anisotropic-rotation-double-amount" type="double">1</parameter>
<parameter name="pbr-anisotropic-rotation-amount" type="int">100</parameter>
<parameter name="pbr-sheen" type="double">0</parameter>
<parameter name="pbr-sheen-on" type="bool">false</parameter>
<parameter name="pbr-sheen-double-amount" type="double">1</parameter>
<parameter name="pbr-sheen-amount" type="int">100</parameter>
<parameter name="pbr-sheen-tint" type="double">0</parameter>
<parameter name="pbr-sheen-tint-on" type="bool">false</parameter>
<parameter name="pbr-sheen-tint-double-amount" type="double">1</parameter>
<parameter name="pbr-sheen-tint-amount" type="int">100</parameter>
<parameter name="pbr-clearcoat" type="double">0</parameter>
<parameter name="pbr-clearcoat-on" type="bool">false</parameter>
<parameter name="pbr-clearcoat-double-amount" type="double">1</parameter>
<parameter name="pbr-clearcoat-amount" type="int">100</parameter>
<parameter name="pbr-clearcoat-roughness" type="double">0</parameter>
<parameter name="pbr-clearcoat-roughness-on" type="bool">false</parameter>
<parameter name="pbr-clearcoat-roughness-double-amount" type="double">1</parameter>
<parameter name="pbr-clearcoat-roughness-amount" type="int">100</parameter>
<parameter name="pbr-opacity-ior" type="double">1.52</parameter>
<parameter name="pbr-opacity-ior-on" type="bool">false</parameter>
<parameter name="pbr-opacity-ior-double-amount" type="double">1</parameter>
<parameter name="pbr-opacity-ior-amount" type="int">100</parameter>
<parameter name="pbr-opacity" type="double">1</parameter>
<parameter name="pbr-opacity-on" type="bool">false</parameter>
<parameter name="pbr-opacity-double-amount" type="double">1</parameter>
<parameter name="pbr-opacity-amount" type="int">100</parameter>
<parameter name="pbr-opacity-roughness" type="double">0</parameter>
<parameter name="pbr-opacity-roughness-on" type="bool">false</parameter>
<parameter name="pbr-opacity-roughness-double-amount" type="double">1</parameter>
<parameter name="pbr-opacity-roughness-amount" type="int">100</parameter>
<parameter name="pbr-alpha" type="double">1</parameter>
<parameter name="pbr-alpha-on" type="bool">false</parameter>
<parameter name="pbr-alpha-double-amount" type="double">1</parameter>
<parameter name="pbr-alpha-amount" type="int">100</parameter>
<parameter name="pbr-subsurface-scattering-color" type="color">1,1,1,1</parameter>
<parameter name="pbr-subsurface-scattering-color-on" type="bool">false</parameter>
<parameter name="pbr-subsurface-scattering-color-double-amount" type="double">1</parameter>
<parameter name="pbr-subsurface-scattering-color-amount" type="int">100</parameter>
<parameter name="pbr-emission" type="color">0,0,0,1</parameter>
<parameter name="pbr-emission-on" type="bool">false</parameter>
<parameter name="pbr-emission-double-amount" type="double">1</parameter>
<parameter name="pbr-emission-amount" type="int">100</parameter>
<parameter name="emission-multiplier" type="double">1</parameter>
<parameter name="emission-multiplier-on" type="bool">false</parameter>
<parameter name="emission-multiplier-double-amount" type="double">1</parameter>
<parameter name="emission-multiplier-amount" type="int">100</parameter>
<parameter name="alpha-transparency" type="bool">true</parameter>
<parameter name="pbr-ambient-occlusion" type="double">1</parameter>
<parameter name="pbr-ambient-occlusion-on" type="bool">false</parameter>
<parameter name="pbr-ambient-occlusion-double-amount" type="double">1</parameter>
<parameter name="pbr-ambient-occlusion-amount" type="int">100</parameter>
<parameter name="pbr-bump" type="color">0,0,0,1</parameter>
<parameter name="pbr-bump-on" type="bool">false</parameter>
<parameter name="pbr-bump-double-amount" type="double">0.3</parameter>
<parameter name="pbr-bump-amount" type="int">30</parameter>
<parameter name="pbr-displacement" type="double">0</parameter>
<parameter name="pbr-displacement-on" type="bool">false</parameter>
<parameter name="pbr-displacement-double-amount" type="double">0.001</parameter>
<parameter name="pbr-displacement-amount" type="int">0</parameter>
<parameter name="pbr-clearcoat-bump" type="color">0,0,0,1</parameter>
<parameter name="pbr-clearcoat-bump-on" type="bool">false</parameter>
<parameter name="pbr-clearcoat-bump-double-amount" type="double">1</parameter>
<parameter name="pbr-clearcoat-bump-amount" type="int">100</parameter>
<parameter name="pbr-show-ui-basic-metalrough" type="bool">false</parameter>
<parameter name="pbr-show-ui-subsurface" type="bool">false</parameter>
<parameter name="pbr-show-ui-specularity" type="bool">false</parameter>
<parameter name="pbr-show-ui-anisotropy" type="bool">false</parameter>
<parameter name="pbr-show-ui-sheen" type="bool">false</parameter>
<parameter name="pbr-show-ui-clearcoat" type="bool">false</parameter>
<parameter name="pbr-show-ui-opacity" type="bool">false</parameter>
<parameter name="pbr-show-ui-emission" type="bool">false</parameter>
<parameter name="pbr-show-ui-bump-displacement" type="bool">false</parameter>
<parameter name="pbr-show-ui-ambient-occlusion" type="bool">false</parameter>
</parameters-v8>
<parameters>
<automatic-dynamic-field-meta-data type="string"><xml/></automatic-dynamic-field-meta-data>
<pbr-base-color type="color">0.980000019073486,0.980000019073486,0.980000019073486,1</pbr-base-color>
<pbr-base-color-on type="bool">false</pbr-base-color-on>
<pbr-base-color-double-amount type="double">1</pbr-base-color-double-amount>
<pbr-base-color-amount type="int">100</pbr-base-color-amount>
<pbr-subsurface type="double">0</pbr-subsurface>
<pbr-subsurface-on type="bool">false</pbr-subsurface-on>
<pbr-subsurface-double-amount type="double">1</pbr-subsurface-double-amount>
<pbr-subsurface-amount type="int">100</pbr-subsurface-amount>
<pbr-subsurface-scattering-radius type="double">0</pbr-subsurface-scattering-radius>
<pbr-subsurface-scattering-radius-on type="bool">false</pbr-subsurface-scattering-radius-on>
<pbr-subsurface-scattering-radius-double-amount type="double">0.01</pbr-subsurface-scattering-radius-double-amount>
<pbr-subsurface-scattering-radius-amount type="int">1</pbr-subsurface-scattering-radius-amount>
<pbr-metallic type="double">0</pbr-metallic>
<pbr-metallic-on type="bool">false</pbr-metallic-on>
<pbr-metallic-double-amount type="double">1</pbr-metallic-double-amount>
<pbr-metallic-amount type="int">100</pbr-metallic-amount>
<pbr-specular type="double">0.5</pbr-specular>
<pbr-specular-on type="bool">false</pbr-specular-on>
<pbr-specular-double-amount type="double">1</pbr-specular-double-amount>
<pbr-specular-amount type="int">100</pbr-specular-amount>
<pbr-specular-tint type="double">0</pbr-specular-tint>
<pbr-specular-tint-on type="bool">false</pbr-specular-tint-on>
<pbr-specular-tint-double-amount type="double">1</pbr-specular-tint-double-amount>
<pbr-specular-tint-amount type="int">100</pbr-specular-tint-amount>
<pbr-roughness type="double">0.2</pbr-roughness>
<pbr-roughness-on type="bool">false</pbr-roughness-on>
<pbr-roughness-double-amount type="double">1</pbr-roughness-double-amount>
<pbr-roughness-amount type="int">100</pbr-roughness-amount>
<pbr-anisotropic type="double">0</pbr-anisotropic>
<pbr-anisotropic-on type="bool">false</pbr-anisotropic-on>
<pbr-anisotropic-double-amount type="double">1</pbr-anisotropic-double-amount>
<pbr-anisotropic-amount type="int">100</pbr-anisotropic-amount>
<pbr-anisotropic-rotation type="double">0</pbr-anisotropic-rotation>
<pbr-anisotropic-rotation-on type="bool">false</pbr-anisotropic-rotation-on>
<pbr-anisotropic-rotation-double-amount type="double">1</pbr-anisotropic-rotation-double-amount>
<pbr-anisotropic-rotation-amount type="int">100</pbr-anisotropic-rotation-amount>
<pbr-sheen type="double">0</pbr-sheen>
<pbr-sheen-on type="bool">false</pbr-sheen-on>
<pbr-sheen-double-amount type="double">1</pbr-sheen-double-amount>
<pbr-sheen-amount type="int">100</pbr-sheen-amount>
<pbr-sheen-tint type="double">0</pbr-sheen-tint>
<pbr-sheen-tint-on type="bool">false</pbr-sheen-tint-on>
<pbr-sheen-tint-double-amount type="double">1</pbr-sheen-tint-double-amount>
<pbr-sheen-tint-amount type="int">100</pbr-sheen-tint-amount>
<pbr-clearcoat type="double">0</pbr-clearcoat>
<pbr-clearcoat-on type="bool">false</pbr-clearcoat-on>
<pbr-clearcoat-double-amount type="double">1</pbr-clearcoat-double-amount>
<pbr-clearcoat-amount type="int">100</pbr-clearcoat-amount>
<pbr-clearcoat-roughness type="double">0</pbr-clearcoat-roughness>
<pbr-clearcoat-roughness-on type="bool">false</pbr-clearcoat-roughness-on>
<pbr-clearcoat-roughness-double-amount type="double">1</pbr-clearcoat-roughness-double-amount>
<pbr-clearcoat-roughness-amount type="int">100</pbr-clearcoat-roughness-amount>
<pbr-opacity-ior type="double">1.52</pbr-opacity-ior>
<pbr-opacity-ior-on type="bool">false</pbr-opacity-ior-on>
<pbr-opacity-ior-double-amount type="double">1</pbr-opacity-ior-double-amount>
<pbr-opacity-ior-amount type="int">100</pbr-opacity-ior-amount>
<pbr-opacity type="double">1</pbr-opacity>
<pbr-opacity-on type="bool">false</pbr-opacity-on>
<pbr-opacity-double-amount type="double">1</pbr-opacity-double-amount>
<pbr-opacity-amount type="int">100</pbr-opacity-amount>
<pbr-opacity-roughness type="double">0</pbr-opacity-roughness>
<pbr-opacity-roughness-on type="bool">false</pbr-opacity-roughness-on>
<pbr-opacity-roughness-double-amount type="double">1</pbr-opacity-roughness-double-amount>
<pbr-opacity-roughness-amount type="int">100</pbr-opacity-roughness-amount>
<pbr-alpha type="double">1</pbr-alpha>
<pbr-alpha-on type="bool">false</pbr-alpha-on>
<pbr-alpha-double-amount type="double">1</pbr-alpha-double-amount>
<pbr-alpha-amount type="int">100</pbr-alpha-amount>
<pbr-subsurface-scattering-color type="color">1,1,1,1</pbr-subsurface-scattering-color>
<pbr-subsurface-scattering-color-on type="bool">false</pbr-subsurface-scattering-color-on>
<pbr-subsurface-scattering-color-double-amount type="double">1</pbr-subsurface-scattering-color-double-amount>
<pbr-subsurface-scattering-color-amount type="int">100</pbr-subsurface-scattering-color-amount>
<pbr-emission type="color">0,0,0,1</pbr-emission>
<pbr-emission-on type="bool">false</pbr-emission-on>
<pbr-emission-double-amount type="double">1</pbr-emission-double-amount>
<pbr-emission-amount type="int">100</pbr-emission-amount>
<emission-multiplier type="double">1</emission-multiplier>
<emission-multiplier-on type="bool">false</emission-multiplier-on>
<emission-multiplier-double-amount type="double">1</emission-multiplier-double-amount>
<emission-multiplier-amount type="int">100</emission-multiplier-amount>
<alpha-transparency type="bool">true</alpha-transparency>
<pbr-ambient-occlusion type="double">1</pbr-ambient-occlusion>
<pbr-ambient-occlusion-on type="bool">false</pbr-ambient-occlusion-on>
<pbr-ambient-occlusion-double-amount type="double">1</pbr-ambient-occlusion-double-amount>
<pbr-ambient-occlusion-amount type="int">100</pbr-ambient-occlusion-amount>
<pbr-bump type="color">0,0,0,1</pbr-bump>
<pbr-bump-on type="bool">false</pbr-bump-on>
<pbr-bump-double-amount type="double">0.3</pbr-bump-double-amount>
<pbr-bump-amount type="int">30</pbr-bump-amount>
<pbr-displacement type="double">0</pbr-displacement>
<pbr-displacement-on type="bool">false</pbr-displacement-on>
<pbr-displacement-double-amount type="double">0.001</pbr-displacement-double-amount>
<pbr-displacement-amount type="int">0</pbr-displacement-amount>
<pbr-clearcoat-bump type="color">0,0,0,1</pbr-clearcoat-bump>
<pbr-clearcoat-bump-on type="bool">false</pbr-clearcoat-bump-on>
<pbr-clearcoat-bump-double-amount type="double">1</pbr-clearcoat-bump-double-amount>
<pbr-clearcoat-bump-amount type="int">100</pbr-clearcoat-bump-amount>
<pbr-show-ui-basic-metalrough type="bool">false</pbr-show-ui-basic-metalrough>
<pbr-show-ui-subsurface type="bool">false</pbr-show-ui-subsurface>
<pbr-show-ui-specularity type="bool">false</pbr-show-ui-specularity>
<pbr-show-ui-anisotropy type="bool">false</pbr-show-ui-anisotropy>
<pbr-show-ui-sheen type="bool">false</pbr-show-ui-sheen>
<pbr-show-ui-clearcoat type="bool">false</pbr-show-ui-clearcoat>
<pbr-show-ui-opacity type="bool">false</pbr-show-ui-opacity>
<pbr-show-ui-emission type="bool">false</pbr-show-ui-emission>
<pbr-show-ui-bump-displacement type="bool">false</pbr-show-ui-bump-displacement>
<pbr-show-ui-ambient-occlusion type="bool">false</pbr-show-ui-ambient-occlusion>
</parameters>
<simulation>
<ambient type="color">0,0,0,1</ambient>
<diffuse type="color">0.980392158031464,0.980392158031464,0.980392158031464,1</diffuse>
<emission type="color">0,0,0,1</emission>
<specular type="color">0.800000011920929,0.800000011920929,0.800000011920929,1</specular>
<shine type="double">0.8</shine>
<transparency type="double">0</transparency>
<reflectivity type="double">0.8</reflectivity>
<ior type="double">1.52</ior>
<fresnel-enabled type="bool">true</fresnel-enabled>
<polish-amount type="double">0.8</polish-amount>
<clarity-amount type="double">1</clarity-amount>
<reflection type="color">1,1,1,1</reflection>
<transparent type="color">1,1,1,1</transparent>
<is-physically-based type="bool">true</is-physically-based>
<pbr-brdf type="string">ggx</pbr-brdf>
<pbr-base-color type="color">0.980000019073486,0.980000019073486,0.980000019073486,1</pbr-base-color>
<pbr-subsurface type="double">0</pbr-subsurface>
<pbr-subsurface-scattering-color type="color">1,1,1,1</pbr-subsurface-scattering-color>
<pbr-subsurface-scattering-radius type="double">0</pbr-subsurface-scattering-radius>
<pbr-specular type="double">0.5</pbr-specular>
<pbr-specular-tint type="double">0</pbr-specular-tint>
<pbr-metallic type="double">0</pbr-metallic>
<pbr-roughness type="double">0.2</pbr-roughness>
<pbr-anisotropic type="double">0</pbr-anisotropic>
<pbr-anisotropic-rotation type="double">0</pbr-anisotropic-rotation>
<pbr-sheen type="double">0</pbr-sheen>
<pbr-sheen-tint type="double">0</pbr-sheen-tint>
<pbr-clearcoat type="double">0</pbr-clearcoat>
<pbr-clearcoat-roughness type="double">0</pbr-clearcoat-roughness>
<pbr-opacity type="double">1</pbr-opacity>
<pbr-opacity-ior type="double">1.52</pbr-opacity-ior>
<pbr-opacity-roughness type="double">0</pbr-opacity-roughness>
<pbr-emission type="color">0,0,0,1</pbr-emission>
<pbr-alpha type="double">1</pbr-alpha>
<pbr-use-base-color-texture-alpha type="bool">true</pbr-use-base-color-texture-alpha>
</simulation>
<preview>
<scene-scale type="double">1</scene-scale>
<angle-x type="double">38.6746511713306</angle-x>
<angle-y type="double">35.2369044005456</angle-y>
<rotation-type type="string">camera</rotation-type>
<geometry type="string">material-scene</geometry>
<background type="string">material-scene</background>
<lighting type="string">skylighting</lighting>
</preview>
</material>
<meta-data>
<renderer-name>Generic</renderer-name>
<type-name>Physically Based</type-name>
</meta-data>
</xml>
I left the thumbnail tag out.