I tried the same code with the most recent gRPC version. The issue observed with version 1.50.1 was not present in 1.73.1 anymore. Simply updating to the latest version should fix the problem.