Strange behaviour of radio.openWritingPipe with NRF24L01

You are using the wrong datatype for the address,
it is supposed to be 5 bytes, you are supplying only 4.

uint32_t addresses = 1;

The fifth byte will be taken from behind the variable, which will probably be different in both cases.