You should be able to change:
| beam.Map(lambda x: f"{x[0]},{x[1]}")
to
| beam.Map(lambda x: f"{x[0]},{x[1]}").with_output_types(str)
this error is coming because Beam is not able to automatically infer the output type of your map stage, so it is not able to convert it to a schema'd element.