Mobile communications evolve approximately every decade, with 5G and 5G-Advanced currently in use and 6G anticipated by 2030. 5G and beyond networks require diverse spectrum allocations: low-band for coverage, mid-band for both coverage and capacity, and high-band for ultra-high data rates. To meet increasing capacity demands, small cells are deployed, significantly increasing base station (BS) proximity and network densification. This results in frequent handovers, which can lead to unnecessary handovers, ping-pong effects, and handover failures, causing signaling overhead, network congestion, and session disruptions for mobile users. This paper proposes an optimization approach for handover candidate lists (HCLs) to reduce frequent handovers, unnecessary handovers, ping-pong effects, and handover failures in 5G and beyond networks. The developed framework improves handover performance by over 50% for Absolute handover events while maintaining good throughput.