Charles Leclerc was disappointed to retire in Spain with an engine issue as the Ferrari driver felt he could finish in the top six.