Do you solved abot texture don´t showing? i have enable on 1.19.3 optifine
As far as i know optifine works with NBT display names or something like that i don´t know if that change but i mean is name based, so if you change tha name, then textures is loses, but i´m not competly sure about that.
EDIT: after some searching i found that you can put or change nbt dependencys, so you can add nbt.display.Lore.0="elytra1" & delete nbt.display.Name dependency to no longer depends on that, because as i red, it says that for change texture on item, it need to qualify for all dependencys inclusive. Also, don´t forget to add lore on itemms adder packs config
So anvil doesn´t modify lore & your texture would not change