艾历 is the Cantonese-style transliteration (read 'oi6 lik6' in Cantonese, very close to 'Eric' / 'Alec'). In Mandarin-only contexts the name Eric is more often written
埃里克 Āilǐkè or
艾瑞克 Àiruìkè. Encountering
艾历 in subtitles usually signals a Hong Kong source.