In Vehicular Ad Hoc Networks (VANETs), detecting Sybil attacks is crucial for maintaining the integrity, reliability, and security of VANETs. These attacks can lead to severe consequences like traffic congestion, false accident reports, or even life-threatening situations due to misleading data. Specifically, detecting Sybil attacks where a single node masquerades as multiple identities poses a significant problem, as it directly conflicts with privacy preservation objectives. Existing solutions typically fall short of addressing these concerns effectively. To address these challenges, this research introduces the Exponential Frilled Lizard Optimization_ Quantum Dilated Convolutional Neural Network (EFLO_QDCNN) framework for effective Sybil attack detection. Firstly, a VANET simulation is conducted, and secure communication is done through routing. Furthermore, Sybil attack detection is performed at the Base Station (BS). Initially, input data is subjected to feature selection, and it is performed based on the Histogram Intersection metric. Subsequently, QDCNN is employed for detecting Sybil attacks. Here, the QDCNN is trained using EFLO. The EFLO algorithm mimics the adaptive survival behavior of frilled lizards to balance exploration and exploitation in optimization tasks. Moreover, EFLO_QDCNN gained Energy, F-measure, and precision of 0.054J, 90.714%, and 89.742%. This demonstrates that the model provides not only accurate detection results but also low energy consumption, which is essential for resource-constrained VANET environments.