Pigweed build error with NCS v3.1.0-preview4

I want to try out some changes that are not yet in the stable NCS releases, so I'm trying to build my Matter application using NCS v3.1.0-preview4. Unfortunately it gives the error shown below (duplicate output file in the pigweed repo). This happens even with the sample applications, so I'm not sure how to fix it.

Is this a known issue and any clues how to fix it?

Starting Matter library build in C:/Users/bertl/NCS/v3.1.0-preview4/nrf/samples/matter/lock/build/lock/modules/connectedhomeip
ERROR at //third_party/pigweed/repo/pw_protobuf_compiler/proto.gni:584:3: Duplicate output file.
  generated_file("$target_name._includes") {
  ^------------------------------------------
Two or more targets generate the same output:
  protocol_buffer/gen/third_party/pigweed/repo/pw_chrono/protos.proto_library/includes.txt

This is can often be fixed by changing one of the target names, or by 
setting an output_name on one of them.

Collisions:
  //third_party/pigweed/repo/pw_chrono:protos._includes(//config/nrfconnect/chip-gn/toolchain:zephyr)

Related