Only changing a little here and there can’t work. You have to build the e rom from beginning on. There are too much sources changed on every site.
A really working build howto is here [HOWTO] Build /e/ without docker for non LineageOS supported devices
I have build with this script a lot of e roms successfull.