No it can’t. If the lore is secret, the DM has no obligation to reveal it to a history check, even if they rolled a 30. History is about what your character can reasonably know. If the secret isn’t known to anyone, you can’t magically learn it through a skill check. Any DM allowing that is doing...