The fifth-generation new radio technology (5G NR) introduces improved functions to the air interface. In addition, the 5G NR non-standalone (NSA) will operate with long-term evolution, enabling vehicle-to-everything communications (V2X) for improved infotainment services. V2X includes four main classes of communications: vehicle-to-vehicle, vehicle-to-infrastructure, vehicle-to-pedestrian devices, and vehicle-to-network. However, the stringent transmission frequency, latency, and throughput requirements of infotainment applications constrain the transmitting packets of 5G-V2X-based NSA in highway scenarios. In this paper, the latency is improved by preventing the physical layer of gNodeB and the user equipment (UE) from sending redundant packets for service in a highway scenario. The proposed approach adopts an adaptive neuro-fuzzy inference system (ANFIS), a powerful modeling technique based on artificial neural networks ,and a fuzzy inference system. The performance of ANFIS is compared with that of the traditional 5G V2X NSA architecture in a simulation study using Voice over Internet Protocol (VoIP) traffic. The delays, throughputs, and packet losses of both architectures are determined in radio link control (RLC) and VoIP applications. The switch-modes, signal-to-interference-noise ratios (SINRs), hybrid automatic repeat request (HARQ) error rate, channel quality indicators (CQIs), served blocks, and transmission-state of gNodeB are computed for the two architectures for device-to-device (D2D), uplink (UL) and downlink (DL) traffic directions. The simulation results show comparable SINRs, CQIs, served blocks ,andswitchmodes in both scenarios, but the presented ANFIS model significantly outperforms the traditional architecture in delay by 66% in D2D, 29% in UL, 25% in DL, and packet loss by 21% in UL in RLC, the HARQ error rate by 9% in D2D, 30% in UL, 95% in DL, transmission-state in gNodeB by 29%, and the delay by 4% for UEs, and frame loss by 90%for UE in VoIP.