These instructions are not valid in the WebGPU execution environment, but stripping them should have no functional change to the code.
I don't know off hand if the dead code stripping passes we currently perform remove the debug opcodes or not. If they do then there should still atleast be some tests enforcing this. Otherwise a new pass needs to be added also.