That has been an issue for some time, see the following post:
Failing Full Gas training segments for using too much power - Bugs and Support - Zwift Forums
Basically they should have made the full gas sections “free ride” sections so you could go full gas (whatever full gas is for the rider) and still get full stars.