I'm a big proponent of exposition, but you gotta do it right. You gotta be subtle with it. And Lord knows I've fucking erred in that respect, but I'm trying to do better.
You wanna not come on so heavy early on, if you're gonna do big exposition then save it for later on. It's not something you wanna frontload with. If you can just naturally sprinkle it through the narrative, great! If not, try to build a natural context around it. You could do this by having a storyteller character, or having a character who reads a lot of books, whatever. Just try to present the information within the story naturally. Try to space it out as much as you can, don't give everything away at once. And try to write it in a way where it's interesting, not just chaff.