It can happen that no PDU session can be setup (e.g., PDU session already setup). Check that there is at least one before triggering the message. Also initialize bearer_req.gNB_cu_cp_ue_id early to avoid uninitialized IDs (e.g., when no PDU session to be setup).