After observing the program, I have realized that the problem is that radio.write() returns false. According to the library, it returns false if:
/*
`false` if the payload was sent but was not acknowledged with an ACK
packet. This condition can only be reported if the auto-ack feature
is on.
*/
I do not understand what "but was not acknowledged with an ACK
packet." means. What should I do?