Intervals.icu finds your intervals automatically. Outdoors, a short dip in power at a corner, a junction or a traffic light can end an interval, so one 8-minute effort can show up as two or three shorter pieces. That's normal.
It doesn't cost you in LeCoach. Your score also looks at the ride's own power data (or your pace on a run), so a short dip doesn't count as missed work. If a rep really was cut short, you'll still see it.
Intervals that match your workout steps
Your head unit makes a lap for each workout step. To have Intervals.icu use those laps as your intervals, open Settings in Intervals.icu, go to your cycling sport and turn on the options to use laps for intervals and to keep all laps. For a ride you already uploaded, open it and choose Actions › Use Laps. LeCoach picks up the new intervals by itself.
Leave these options off if your device makes a lap every kilometre: you'd get an interval per kilometre.
More about how sessions are scored in What is the workout execution score?