Successful design of some feature doesn't mean your invulnerable from extinction.
You are certainly right.
The trilobites though seem to have so many different types and arrangements of eyes. It is interesting to speculate if that is not an example of the various ecological niches each occupied. That then leads to the question of whether the variations happened and that drove expansion into a new or different niche, or whether expansion into a new niche favored certain of the eye types.
There is so litle that we know so far about the different niches. We do know that blind eyeless trilobites were contemporary with several eyed ones and lived in the same geographic area. There is a big vertical separation between the area where there is enough light for sight to be useful and the area of perpertual darkness. Likely there were some that were free swimmers near the top of the water column and others that were bottom feeders.
The funny thing IMHO is that most trilobites cannot see down. What does that tell us?
Aslan is not a Tame Lion