commonly, under cabinet lights needs to be at the least 2 inches shorter compared to width of the cabinets and somewhat much less deep when compared to the recessed spot on the cabinet underside.
Industries such as https://lepotecshop.com/collections/mirror-lights