Each bike, or each group of identical bikes, should be a stock item with a size and a type, and every product that uses bikes should draw from the same stock. If your guided ride and your hire desk share six medium e-bikes, the system must know, or you will find out at the van.
Look for how the vendor describes resources or inventory. TrekkSoft's help pages say resources such as boats, guides or equipment are set up with a capacity each, and can be marked as shared between activities or not. Checkfront's bike rental page says operators can reserve frames, sizes, child seats, panniers and helmets, allocate bikes by hour, day or multi-day, and block bikes for maintenance.
Then check the booking step. The guest picks a bike type and gives their height, and the system offers only what is free that day. GOV.UK says e-bike riders must be 14 or over, so a 12-year-old should not be able to book one.
Ask the vendor to show one medium e-bike being booked on a guided ride and then disappearing from hire on the same day. If they cannot show it, they cannot do it.