Eliminate enchantments

I have a datapack which has a "trait" system, traits are similar to enchantments but they're tool-specific and have their own custom ui in the item. The issue is, many of the features that those traits can do, can easily be done with a custom enchantment, which is more compact, efficient, and way easier to implement. The enchantments I will add will have no names so they don't appear as enchantments and I'll order them to be at the bottom of all other enchantments so they're not noticeable, the issue is.. If too many are applied, a huge gap will be noticed at the bottom between the Item's lore and the list of enchantments, because yea those enchantments don't have a name but they take up a space. Is there a way to solve that with just datapacks? If not, can I do it with some custom font tweaks with resourcepack?

Continue to help post