Device Removal, because of Mesh Shader payload

Hello. I’m using DirectX12 Mesh Shaders on my RTX2070S. My driver version is 465.89

As soon as I call this little function in my Mesh Shader:

uint someFunction(Payload p) {
return 0;

Or even make a copy of the payload:

Payload p = payload

I get following error in ID3D12Device::CreatePipelineState:

D3D12: Removing Device.
D3D12 WARNING: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DRIVER_INTERNAL_ERROR: There is strong evidence that the driver has performed an undefined operation; but it may be because the application performed an illegal or undefined operation to begin with.). [ EXECUTION WARNING #233: DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT]
D3D12: BREAK enabled for the previous message, which was: [ WARNING EXECUTION #233: DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT ]

Is it illegal to do stuff like this with the mesh shader payload? Or is it a driver bug? Can I work around it somehow? I’d like to pass it to a function.